cors: add in header for cors

This commit is contained in:
silver 2023-07-28 00:05:11 +01:00
parent 206f59d0fd
commit 2ebbb2b649

View file

@ -57,6 +57,10 @@
forceSSL = true;
useACMEHost = "skynet";
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 = {