Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
closes #627
Description
Before this patch, using the
jellyfin-webosclient to connect to a Jellyfin server behind a nginx reverse proxy using the jellyfin.subdomain.conf.sample resulted inError -27described here.I removed
X-Frame-Optionsheader if thehttp_user_agentcontainsWeb0S, and it fix theError -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
SAMEORIGINusing this command:curl -I -X GET $jellyfin_urlto check ifX-Frame-Optionswas set toSAMEORIGIN.Using the unpatched conf,
X-Frame-Optionsis set toSAMEORIGIN(and error -27 appears)Using my patched conf,
X-Frame-Optionsis not present, and thejellyfin-webosclient 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: