From 9024cba8ed8c4fe3a3c6c6d497d1dbc0255ea3db Mon Sep 17 00:00:00 2001 From: Noah Manneschmidt Date: Fri, 5 Jul 2024 12:45:34 -0700 Subject: [PATCH] Remove header for LG TV apps (YunoHost-Apps/jellyfin_ynh#125) --- conf/nginx.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/conf/nginx.conf b/conf/nginx.conf index b983196..55793b8 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -11,6 +11,12 @@ location __PATH__/ { proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $http_connection; + # Disable a specific header for compatability with LG TV app + # Fixes https://github.com/YunoHost-Apps/jellyfin_ynh/issues/125 + if ($http_user_agent ~ Web0S) { + more_set_headers X-Frame-Options : ""; + } + # Disable buffering when the nginx proxy gets very resource heavy upon streaming proxy_buffering off;