diff --git a/nixos/profiles/services/sicp-staging/default.nix b/nixos/profiles/services/sicp-staging/default.nix index d408838bf..6bb46db8f 100644 --- a/nixos/profiles/services/sicp-staging/default.nix +++ b/nixos/profiles/services/sicp-staging/default.nix @@ -221,6 +221,21 @@ in }; }; }; + management = { + endpoints = { + web = { + allowed-origins = [ + "https://sicp-staging.li7g.com" + "http://localhost:5173" + "http://localhost:3000" + ]; + allowed-methods = "*"; + allowed-headers = "*"; + allowed-credentials = true; + max-age = "3600s"; + }; + }; + }; }; services.nginx.virtualHosts."sicp-staging.*" =