Repository navigation
Replies: 2 comments 2 replies
|
Hi Ryan, I reproduced this with Jellyfin 12.2, the plugin at 2.6.5 and Chrome, behind a local TLS proxy that adds the two headers from Jellyfin's nginx example to every response, as The settings page: The QR codes: Passkeys: With these three changes everything worked through the proxy, and the console showed no other violation on the settings page, the Setup page or the plugin's sign-in page: add_header Permissions-Policy "accelerometer=(), ambient-light-sensor=(), battery=(), bluetooth=(), camera=(), clipboard-read=(), display-capture=(), document-domain=(), encrypted-media=(), gamepad=(), geolocation=(), gyroscope=(), hid=(), idle-detection=(), interest-cohort=(), keyboard-map=(), local-fonts=(), magnetometer=(), microphone=(), payment=(), publickey-credentials-get=(self), serial=(), sync-xhr=(self), usb=(), xr-spatial-tracking=()" always;
add_header Content-Security-Policy "default-src https: data: blob: ; img-src 'self' data: https://* ; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' https://www.gstatic.com https://www.youtube.com blob:; worker-src 'self' blob:; connect-src 'self'; object-src 'none'; font-src 'self'";On finding these yourself: the console message names the directive that blocked something (for the QR code it says the image "violates the following Content Security Policy directive: "img-src 'self' https://*""), so the fix is usually adding the source it shows to that one directive. Sending the same policy as |
|
Thank you very much for the detailed answer! Just for my clarification and understanding. |
Uh oh!
There was an error while loading. Please reload this page.
I have the plugin installed and if i hit my JF server directly all elements load fine.
When i try and access it through my nginx proxy the settings page doesn't load, and things like the QR code for enrolling in 2fa does not work.
NGINX is set up per this page https://jellyfin.org/docs/general/post-install/networking/reverse-proxy/nginx/
removing
sync-xhr=(),from the Permission-Policy and commenting out Content-Security-Policy lets the UI load as expected.I am not a fan of either of those changes, but for testing they work. Any suggestions for a good resource to dig into how to solve for these problems? I've used inspect to see that, indeed, there are blocked elements, but how to make exceptions (if possible) is not coming up in my searches. I know this is (obviously) not a problem with this package, but on the chance someone has run into this or similar problems, I could use an assist.
--Ryan
All reactions