From 11770f7635e3779db979bb1bddb5b4bd97cf8700 Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Thu, 11 Jul 2024 14:24:15 +0200 Subject: [PATCH] infra: allow cross origin --- nix/infra/nginx.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; + ''; + }; }; }; };