Coder Social home page Coder Social logo

Comments (10)

gotson avatar gotson commented on June 12, 2024

Can you share what reverse proxy configuration you are using?

from komga.

gotson avatar gotson commented on June 12, 2024

Can you also get the content of https://komga.domain.com/api/v1/books/06GB75S90JH57/manifest ?

from komga.

nx6 avatar nx6 commented on June 12, 2024

Hello. I'm having this same issue. I can read manga fine, it's only an issue with the new eBooks reader.

Komga version: 1.8.3
Operating system: FreeBSD
Installation method: jar

# Proxy for Komga

    location /manga {
        return 302 $scheme://$host/manga/;
    }
	
	location /manga/ {
		proxy_pass http://192.168.x.xxx:25600;
		proxy_redirect off;
		proxy_set_header Host $host;
		proxy_set_header X-Real-IP 		$remote_addr;
		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
	}

I'm not having any luck with the Manifest thing you're asking for.

Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing this as a fallback.
Tue Dec 05 05:14:13 GMT 2023
There was an unexpected error (type=Not Found, status=404).
404 NOT_FOUND

from komga.

gotson avatar gotson commented on June 12, 2024

I believe you may be missing X-Forwarded-Proto in your reverse proxy configuration.

from komga.

nx6 avatar nx6 commented on June 12, 2024

Well that did change things. Instead of getting a blank page I got a little exclamation mark triangle instead. I didn't have an error referencing index.js:62874 and Mixed Content not loading like I was getting, similar to @JamesDAdams. Instead I now had:

Invalid X-Frame-Options header was found when loading “https://domain.tld/manga/api/v1/books/0EDB0YARZXJPM/resource/OPS/cover.xhtml”: “invalid” is not a valid directive.

I followed the Inspector's link to read up on the error, and added add_header X-Frame-Options SAMEORIGIN; to my config as well, and that seems to have fixed this issue for me. 👍

from komga.

gotson avatar gotson commented on June 12, 2024

you probably have some other missing configuration in your reverse proxy if you need to add the X-Frame-Options, as it is already being returned by the backend.

Maybe your RP is filtering it, and thus it does not reach your browser.

from komga.

gotson avatar gotson commented on June 12, 2024

I am using Caddy 2 myself, and it works outside the box. This is what Caddy is doing in reverse proxy:

It sets or augments the X-Forwarded-For header field.
It sets the X-Forwarded-Proto header field.
It sets the X-Forwarded-Host header field.

from komga.

JamesDAdams avatar JamesDAdams commented on June 12, 2024

Well that did change things. Instead of getting a blank page I got a little exclamation mark triangle instead. I didn't have an error referencing index.js:62874 and Mixed Content not loading like I was getting, similar to @JamesDAdams. Instead I now had:

Invalid X-Frame-Options header was found when loading “https://domain.tld/manga/api/v1/books/0EDB0YARZXJPM/resource/OPS/cover.xhtml”: “invalid” is not a valid directive.

I followed the Inspector's link to read up on the error, and added add_header X-Frame-Options SAMEORIGIN; to my config as well, and that seems to have fixed this issue for me. 👍

I add add_header X-Frame-Options SAMEORIGIN; in my nginx proxy manager and it's doesn't work for me :/

Same for :

It sets or augments the X-Forwarded-For header field.
It sets the X-Forwarded-Proto header field.
It sets the X-Forwarded-Host header field.

from komga.

JamesDAdams avatar JamesDAdams commented on June 12, 2024
image

from komga.

JamesDAdams avatar JamesDAdams commented on June 12, 2024

I use Cloudfalre tunnel and if i redirect the tunnel directly on Komga container it's work, but i redirect all my tunnel to Nginx proxy manager and NPM redirect to my container

from komga.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.