Skip to content

Conversation

@Noneangel
Copy link
Contributor

linuxserver.io


  • I have read the contributing guideline and understand that I have made the correct modifications

closes #627

Description

Before this patch, using the jellyfin-webos client to connect to a Jellyfin server behind a nginx reverse proxy using the jellyfin.subdomain.conf.sample resulted in Error -27 described here.
I removed X-Frame-Options header if the http_user_agent contains Web0S, and it fix the Error -27.

Caution

The name of the os is WebOS (with the letter O), but the user agent is Web0S with the number 0 as documented here.

How Has This Been Tested?

This post suggested testing the presence / absence of SAMEORIGIN using this command:
curl -I -X GET $jellyfin_url to check if X-Frame-Options was set to SAMEORIGIN.
Using the unpatched conf, X-Frame-Options is set to SAMEORIGIN (and error -27 appears)
Using my patched conf, X-Frame-Options is not present, and the jellyfin-webos client can connect to the server.

Caution

I only tested the jellyfin.subdomain.conf, not the jellyfin.subfolder.conf.

Source / References

In the Jellyfin doc for nginx, there is a note:

NOTE: X-Frame-Options may cause issues with the webOS app

@quietsy
Copy link
Member

quietsy commented Jan 11, 2025

I solved the same issue with:

add_header Access-Control-Allow-Origin "luna://com.webos.service.config" always;

I think it's more secure this way, can you test it out?

@Noneangel
Copy link
Contributor Author

Your solution is working.

Copy link
Member

@quietsy quietsy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for the PR

@quietsy quietsy merged commit 5aaa248 into linuxserver:master Jan 12, 2025
2 checks passed
@Noneangel Noneangel mentioned this pull request May 18, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[BUG] Jellyfin gives an error 27 on specific devices

2 participants