repositioned cors header
This commit is contained in:
parent
cdaad1a973
commit
6b50ef9de5
1 changed files with 2 additions and 1 deletions
|
@ -19,7 +19,7 @@ in {
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
"/hls" = {
|
"/hls" = {
|
||||||
add_header 'Access-Control-Allow-Origin' '*';
|
|
||||||
proxyPass = "${host-server}$request_uri";
|
proxyPass = "${host-server}$request_uri";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
types {
|
types {
|
||||||
|
@ -30,6 +30,7 @@ in {
|
||||||
proxy_ignore_headers Cache-Control;
|
proxy_ignore_headers Cache-Control;
|
||||||
proxy_cache_valid any 30m;
|
proxy_cache_valid any 30m;
|
||||||
auth_basic off;
|
auth_basic off;
|
||||||
|
add_header 'Access-Control-Allow-Origin' '*';
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue