repositioned cors header

This commit is contained in:
Lukas Schulz 2020-12-01 21:28:24 +01:00
parent cdaad1a973
commit 6b50ef9de5

View file

@ -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' '*';
''; '';
}; };
}; };