diff --git a/flake.nix b/flake.nix index 1975fc7..3d0f383 100644 --- a/flake.nix +++ b/flake.nix @@ -76,6 +76,11 @@ root = "/var/www/static"; forceSSL = true; enableACME = true; + extraConfig = '' + add_header 'Access-Control-Allow-Credentials' 'true'; + add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; + add_header 'Access-Control-Allow-Origin' '*'; + ''; }; services.nginx.virtualHosts."phantomthieves.net" = {