Skip to content

Commit f9ff065

Browse files
committed
fix: cors
1 parent b0d9331 commit f9ff065

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

docker/default.conf.template

+6-7
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ server {
3232
proxy_pass_request_headers on;
3333
proxy_redirect off;
3434
# TODO: Only allow same server and app.plex.tv
35-
add_header "Access-Control-Allow-Methods" "GET, POST, PUT, PATCH, OPTIONS, HEAD";
35+
#add_header "Access-Control-Allow-Methods" "GET, POST, PUT, PATCH, OPTIONS, HEAD";
3636
# proxy_set_header Origin '$http_origin';
3737
#add header "Access-Control-Expose-Headers" "Location, Date";
3838
#add_header "Access-Control-Allow-Methods" "GET, POST, PUT, PATCH, OPTIONS, HEAD";
@@ -43,19 +43,18 @@ server {
4343
proxy_pass ${PLEX_PROTOCOL}://plex;
4444
}
4545

46-
location /hubs/search {
47-
proxy_pass ${PLEX_PROTOCOL}://plex;
48-
}
49-
5046
location /:/websockets {
5147
proxy_pass ${PLEX_PROTOCOL}://plex;
5248
proxy_http_version 1.1;
5349
proxy_set_header Upgrade $http_upgrade;
5450
proxy_set_header Connection $connection_upgrade;
5551
}
5652

57-
location /hubs/ {
58-
#proxy_pass ${PLEX_PROTOCOL}://$upstream_location;
53+
location /hubs/promoted {
54+
proxy_pass $upstream_location;
55+
}
56+
57+
location /hubs/sections {
5958
proxy_pass $upstream_location;
6059
}
6160

0 commit comments

Comments
 (0)