livecdn: fix CORS

fucking CORS FUCK FUCK FUCK FUCK FUCK it's the absolute WORST
keep-around/4fae006a647edf4c50b738c9cd70bcdbf4ccafe5
hexchen 2020-12-02 18:30:51 +00:00
parent 5fca254095
commit 4fae006a64
2 changed files with 1 additions and 2 deletions

View File

@ -11,6 +11,7 @@
return = "301 \"https://$cdnhosts$request_uri\"";
extraConfig = ''
auth_basic off;
add_header 'Access-Control-Allow-Origin' '*';
'';
};
};

View File

@ -16,7 +16,6 @@ in {
#proxy_cache = off;
expires 2s;
auth_basic off;
add_header 'Access-Control-Allow-Origin' '*';
'';
};
"/hls" = {
@ -31,7 +30,6 @@ in {
proxy_ignore_headers Cache-Control;
proxy_cache_valid any 30m;
auth_basic off;
add_header 'Access-Control-Allow-Origin' '*';
'';
};
};