cors: add in header for cors
This commit is contained in:
parent
206f59d0fd
commit
2ebbb2b649
1 changed files with 4 additions and 0 deletions
|
@ -57,6 +57,10 @@
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
useACMEHost = "skynet";
|
useACMEHost = "skynet";
|
||||||
locations."/".proxyPass = "http://localhost:${port_backend}";
|
locations."/".proxyPass = "http://localhost:${port_backend}";
|
||||||
|
|
||||||
|
extraConfig = ''
|
||||||
|
add_header Access-Control-Allow-Origin "https://sso.${cfg.domain.base}.${cfg.domain.tld}";
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
services.skynet_ldap_backend = {
|
services.skynet_ldap_backend = {
|
||||||
|
|
Loading…
Reference in a new issue