From 6d0046961ec75bd7490e10b4efe2340085867f93 Mon Sep 17 00:00:00 2001 From: kompotkot Date: Wed, 21 Feb 2024 11:25:44 +0000 Subject: [PATCH] Fix nb cors log --- nodebalancer/cmd/nodebalancer/middleware.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/nodebalancer/cmd/nodebalancer/middleware.go b/nodebalancer/cmd/nodebalancer/middleware.go index 64a0f363..14881312 100644 --- a/nodebalancer/cmd/nodebalancer/middleware.go +++ b/nodebalancer/cmd/nodebalancer/middleware.go @@ -378,8 +378,6 @@ func corsMiddleware(next http.Handler) http.Handler { } } - fmt.Println(allowedOrigin, CORS_WHITELIST_MAP) - if allowedOrigin != "" { w.Header().Set("Access-Control-Allow-Origin", allowedOrigin) w.Header().Set("Access-Control-Allow-Methods", "GET,POST,OPTIONS")