From a527e746d9b28e84718002d5ec9505c5b179843f Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Thu, 30 Nov 2023 07:17:20 +0000 Subject: [PATCH] Fix the CORS header for static.danilafe.com Signed-off-by: Danila Fedorin --- configuration.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configuration.nix b/configuration.nix index 1902ee1..49f775e 100644 --- a/configuration.nix +++ b/configuration.nix @@ -13,6 +13,11 @@ let root = web-files; forceSSL = true; enableACME = true; + locations."/" = { + extraConfig = '' + add_header 'Access-Control-Allow-Origin' '*'; + ''; + }; }; }; allVirtualHosts = [webFiles] ++ map blog.virtualHostFor [productionSite draftSite];