infra: allow cross origin

This commit is contained in:
Johannes Jöns 2024-07-11 14:24:15 +02:00
parent 2550a6d79f
commit 11770f7635

View file

@ -20,7 +20,12 @@
"api.clan-war.net" = {
forceSSL = true;
enableACME = true;
locations."/".proxyPass = "http://localhost:8080";
locations."/" = {
proxyPass = "http://localhost:8080";
extraConfig = ''
proxy_set_header Access-Control-Allow-Origin https://clan-war.net;
'';
};
};
};
};