From 3aecbd274fa6c5f3c3d366410e4f4b95bc6830b9 Mon Sep 17 00:00:00 2001 From: trafficlunar Date: Sat, 3 May 2025 18:43:28 +0100 Subject: [PATCH] feat: add nekoweb to allowed origins --- internal/server/router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/server/router.go b/internal/server/router.go index e6bf3c4..1342aec 100644 --- a/internal/server/router.go +++ b/internal/server/router.go @@ -16,7 +16,7 @@ import ( ) func getAllowedOrigins() []string { - allowedOrigins := []string{"https://trafficlunar.net"} + allowedOrigins := []string{"https://trafficlunar.net", "https://trafficlunar.nekoweb.org/"} if os.Getenv("DEVELOPMENT_MODE") == "true" { allowedOrigins = append(allowedOrigins, "http://localhost:4321")