repositioned cors header

keep-around/6b50ef9de5f042d1f4f26804440b68019257b0d6
Lukas Schulz 2020-12-01 21:28:24 +01:00
parent cdaad1a973
commit 6b50ef9de5
1 changed files with 2 additions and 1 deletions

View File

@ -19,7 +19,7 @@ in {
'';
};
"/hls" = {
add_header 'Access-Control-Allow-Origin' '*';
proxyPass = "${host-server}$request_uri";
extraConfig = ''
types {
@ -30,6 +30,7 @@ in {
proxy_ignore_headers Cache-Control;
proxy_cache_valid any 30m;
auth_basic off;
add_header 'Access-Control-Allow-Origin' '*';
'';
};
};