From cdaad1a973c5040a64418b133889866673d6b0d5 Mon Sep 17 00:00:00 2001 From: Lukas Schulz Date: Tue, 1 Dec 2020 21:25:29 +0100 Subject: [PATCH] added cors header --- configuration/server/cdn/cdn-master.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configuration/server/cdn/cdn-master.nix b/configuration/server/cdn/cdn-master.nix index 14e866c..fa2e9b4 100644 --- a/configuration/server/cdn/cdn-master.nix +++ b/configuration/server/cdn/cdn-master.nix @@ -10,6 +10,7 @@ in { virtualHosts."${config.networking.hostName}.live.hacc.media" = { locations = { "~* \\.(m3u8)$" = { + add_header 'Access-Control-Allow-Origin' '*'; proxyPass = "${host-server}$request_uri"; extraConfig = '' #proxy_cache = off; @@ -18,6 +19,7 @@ in { ''; }; "/hls" = { + add_header 'Access-Control-Allow-Origin' '*'; proxyPass = "${host-server}$request_uri"; extraConfig = '' types {