From 03d9d74939670ff1e4996aee4bd019ef56308d89 Mon Sep 17 00:00:00 2001 From: dawn Date: Thu, 30 Jul 2026 01:08:34 +0300 Subject: [PATCH] mirror,spindle-hel: allow cors Signed-off-by: dawn --- hosts/mirror/services/nginx.nix | 1 + hosts/spindle-hel/services/nginx.nix | 1 + 2 files changed, 2 insertions(+) diff --git a/hosts/mirror/services/nginx.nix b/hosts/mirror/services/nginx.nix index 07b095d..40c947d 100644 --- a/hosts/mirror/services/nginx.nix +++ b/hosts/mirror/services/nginx.nix @@ -6,6 +6,7 @@ forceSSL = false; enableACME = false; locations."/" = { + allowCors = true; proxyPass = "http://127.0.0.1:7000"; }; }; diff --git a/hosts/spindle-hel/services/nginx.nix b/hosts/spindle-hel/services/nginx.nix index 61f0ab6..89b4326 100644 --- a/hosts/spindle-hel/services/nginx.nix +++ b/hosts/spindle-hel/services/nginx.nix @@ -11,6 +11,7 @@ locations."/xrpc" = { proxyPass = spindleAddr; proxyWebsockets = true; + allowCors = true; }; locations."/events" = { proxyPass = spindleAddr; -- 2.51.2