Fix the CORS header for static.danilafe.com

Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
Danila Fedorin 2023-11-30 07:17:20 +00:00
parent 3888606d8c
commit a527e746d9

View File

@ -13,6 +13,11 @@ let
root = web-files; root = web-files;
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/" = {
extraConfig = ''
add_header 'Access-Control-Allow-Origin' '*';
'';
};
}; };
}; };
allVirtualHosts = [webFiles] ++ map blog.virtualHostFor [productionSite draftSite]; allVirtualHosts = [webFiles] ++ map blog.virtualHostFor [productionSite draftSite];