Skip to content

Commit 6f71557

Browse files
authored
Use Access-Control-Allow-Origin
1 parent dd15bfc commit 6f71557

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

jellyfin.subdomain.conf.sample

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Version 2025/01/09
1+
## Version 2025/01/11
22
# make sure that your jellyfin container is named jellyfin
33
# make sure that your dns has a cname set for jellyfin
44
# if jellyfin is running in bridge mode and the container is named "jellyfin", the below config should work as is
@@ -22,9 +22,7 @@ server {
2222
set $upstream_app jellyfin;
2323
set $upstream_port 8096;
2424
set $upstream_proto http;
25-
if ($http_user_agent ~ Web0S) {
26-
add_header X-Frame-Options "" always;
27-
}
25+
add_header Access-Control-Allow-Origin "luna://com.webos.service.config" always;
2826
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
2927

3028
proxy_set_header Range $http_range;
@@ -37,9 +35,7 @@ server {
3735
set $upstream_app jellyfin;
3836
set $upstream_port 8096;
3937
set $upstream_proto http;
40-
if ($http_user_agent ~ Web0S) {
41-
add_header X-Frame-Options "" always;
42-
}
38+
add_header Access-Control-Allow-Origin "luna://com.webos.service.config" always;
4339
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
4440

4541
}

jellyfin.subfolder.conf.sample

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Version 2025/01/09
1+
## Version 2025/01/11
22
# make sure that your jellyfin container is named jellyfin
33
# if jellyfin is running in bridge mode and the container is named "jellyfin", the below config should work as is
44
# if not, replace the line "set $upstream_app jellyfin;" with "set $upstream_app <containername>;"
@@ -15,9 +15,7 @@ location ^~ /jellyfin/ {
1515
set $upstream_app jellyfin;
1616
set $upstream_port 8096;
1717
set $upstream_proto http;
18-
if ($http_user_agent ~ Web0S) {
19-
add_header X-Frame-Options "" always;
20-
}
18+
add_header Access-Control-Allow-Origin "luna://com.webos.service.config" always;
2119
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
2220

2321
proxy_set_header Range $http_range;

0 commit comments

Comments
 (0)