From 3ff6e23f188dc0d4615935cdfe558d016c082319 Mon Sep 17 00:00:00 2001 From: Patrick Huie Date: Mon, 9 Mar 2026 12:44:39 +1100 Subject: [PATCH] Comment doesn't apply. This is the cleanest way --- core/services/gateway/network/httpserver.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/core/services/gateway/network/httpserver.go b/core/services/gateway/network/httpserver.go index 23380648f2e..c5bd7b600f0 100644 --- a/core/services/gateway/network/httpserver.go +++ b/core/services/gateway/network/httpserver.go @@ -146,9 +146,6 @@ func (s *httpServer) isAllowedOrigin(origin string) bool { return false } for _, allowed := range s.config.CORSAllowedOrigins { - // probably better to do this once when server starts and store it in a map - // this is an easier solution so we don't have to apply more changes to the code - // just need to be careful when specifying allowed origins in the config file allowedScheme, allowedHost, allowedPort, err := s.splitURL(allowed) if err != nil { s.lggr.Debug("error parsing allowed origin URL", err)