jellyfin / jellyfin-webos

WebOS Client for Jellyfin
https://jellyfin.org
Mozilla Public License 2.0
650 stars 68 forks source link

LG WebOS error code -27 cannot seem to fix #258

Open JurgenKuyper opened 1 week ago

JurgenKuyper commented 1 week ago

hello all, I seem to have the same issue as #60 ; LG app shows error -27, browser on that same tv works, when using CURL on the domain I have the following output:

HTTP/1.1 302 Found
Server: nginx/1.18.0 (Ubuntu)
Date: Wed, 09 Oct 2024 20:08:02 GMT
Content-Length: 0
Connection: keep-alive
Location: web/
Strict-Transport-Security: max-age=31536000
X-Content-Type-Options: nosniff
Access-Control-Allow-Origin: *
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=(), serial=(), sync-xhr=(), usb=(), xr-spatial-tracking=()
Content-Security-Policy: default-src https: data: blob: ; img-src 'self' 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'; frame-ancestors 'self'

the first time I tried, I still had the X-Frame-Options SAMEORIGIN set, but removed it when it failed, the demo site works on the webapp.

pastebin of jellyfin nginx config pastebin of nginx.conf

I have updated jellyfin to the latest version in apt, tv is also up-to-date.

I get the following in the access.log of NGINX:

[external IP] - - [09/Oct/2024:22:18:52 +0200] "GET /System/Info/Public HTTP/2.0" 200 212 "-" "Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.128 Safari/537.36 WebAppManager"
[external IP] - - [09/Oct/2024:22:18:52 +0200] "GET /web/manifest.json HTTP/2.0" 200 312 "-" "Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.128 Safari/537.36 WebAppManager"
[external IP] - - [09/Oct/2024:22:18:52 +0200] "GET /web/index.html HTTP/2.0" 200 2149 "-" "Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.128 Safari/537.36 WebAppManager"

if anyone knows how to fix this that would be greatly appreciated, thanks!

ntrp commented 6 days ago

remove frame-ancestors: 'self' from CSP