forked from hacc/haccfiles
livecdn: fix CORS
fucking CORS FUCK FUCK FUCK FUCK FUCK it's the absolute WORST
This commit is contained in:
parent
5fca254095
commit
4fae006a64
2 changed files with 1 additions and 2 deletions
|
@ -11,6 +11,7 @@
|
|||
return = "301 \"https://$cdnhosts$request_uri\"";
|
||||
extraConfig = ''
|
||||
auth_basic off;
|
||||
add_header 'Access-Control-Allow-Origin' '*';
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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' '*';
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue