infra: allow cross origin
This commit is contained in:
parent
2550a6d79f
commit
11770f7635
1 changed files with 6 additions and 1 deletions
|
@ -20,7 +20,12 @@
|
||||||
"api.clan-war.net" = {
|
"api.clan-war.net" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = 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;
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue