livecdn: fix CORS

fucking CORS FUCK FUCK FUCK FUCK FUCK it's the absolute WORST
This commit is contained in:
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' '*';
'';
};
};