Allow cors on static domain

main
Ashelyn Rose 1 year ago
parent 3b52e384d0
commit efde6f7591

@ -76,6 +76,11 @@
root = "/var/www/static"; root = "/var/www/static";
forceSSL = true; forceSSL = true;
enableACME = 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" = { services.nginx.virtualHosts."phantomthieves.net" = {

Loading…
Cancel
Save