Closed roukydesbois closed 1 month ago
I have a webOS TV running its Jellyfin app (though I cannot find which version of the app is installed, as of today it is up to date), and I cannot replicate the issue with the current NGINX configuration. :(
Try more_set_headers "X-Frame-Options : "";
in /etc/nginx/conf.d/my.domain.d/jellyfin.conf
, maybe?
I have a webOS TV running its Jellyfin app (though I cannot find which version of the app is installed, as of today it is up to date), and I cannot replicate the issue with the current NGINX configuration. :(
Try
more_set_headers "X-Frame-Options : "";
in/etc/nginx/conf.d/my.domain.d/jellyfin.conf
, maybe?
I found myself faced with this issue ever since setting up Yunohost+Jellyfin last year and I finally found this issue and this solved it for me! Specifically:
sudoedit /etc/nginx/conf.d/REDACTED.nohost.me.d/jellyfin.conf
more_set_headers X-Frame-Options : "";
within the location /jellyfin/
block.sudo systemctl restart nginx.service
Finally my Jellyfin app on the LG TV is working for the first time!
Oh, in addition, I scoped this down further to only affect WebOS user-agent strings so the security posture for other browsers remains unchanged. The final addition to my nginx config looks like:
if ($http_user_agent ~ Web0S) {
more_set_headers X-Frame-Options : "";
}
Describe the bug
The Jellyfin for webOS client cannot connect to a Yunohost-installed Jellyfin server
Context
Steps to reproduce
Install the new official client "Jellyfin for WebOS" listed here Enter the information of your server. An error appears (error 27).
Expected behavior
No error on connection
Logs
N/A
Additional comments
This is a documented error - if you look at the documentation of jellyfin here, there is a tip mentioning that
If you look at the
/etc/nginx/conf.d/security.conf.inc
file of Yunohost, on this line, you see that the X-Frame-Options header is indeed set to SAMEORIGIN.I have tested a dirty fix by commenting this line, restarting nginx, and the WebOS client manages to connect.
But, it's a very dirty fix. I also tried to add
add_header X-Frame-Options "";
to/etc/nginx/conf.d/my.domain.d/jellyfin.conf
but it didn't solve the problem.