From c7ce6ffa722bd644ea0e8e06bb009d2bd837c4ae Mon Sep 17 00:00:00 2001 From: RandithaK Date: Sat, 8 Nov 2025 18:52:12 +0530 Subject: [PATCH] feat: Add additional allowed origin for CORS in main.go --- cmd/gateway/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/gateway/main.go b/cmd/gateway/main.go index 704bcc1..7ab93f5 100644 --- a/cmd/gateway/main.go +++ b/cmd/gateway/main.go @@ -204,7 +204,7 @@ func main() { router.Use(middleware.Recoverer) router.Use(cors.New(cors.Options{ - AllowedOrigins: []string{"http://localhost:3000"}, + AllowedOrigins: []string{"http://localhost:3000", "https://techtorque.vercel.app"}, AllowedMethods: []string{"GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"}, AllowedHeaders: []string{"Accept", "Authorization", "Content-Type", "X-CSRF-Token"}, ExposedHeaders: []string{"Link"},