diff --git a/nix/infra/nginx.nix b/nix/infra/nginx.nix index 686b0b4..fbe1985 100644 --- a/nix/infra/nginx.nix +++ b/nix/infra/nginx.nix @@ -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; + ''; + }; }; }; };