From 066c44d08a13a5127340e9b116615e6786d3495d Mon Sep 17 00:00:00 2001 From: nihonium Date: Thu, 4 Dec 2025 07:35:49 +0300 Subject: [PATCH] fix: AllowOrigins --- modules/auth/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/auth/main.go b/modules/auth/main.go index ef9b977..7305b7d 100644 --- a/modules/auth/main.go +++ b/modules/auth/main.go @@ -44,8 +44,9 @@ func main() { server := handlers.NewServer(queries, AppConfig.JwtPrivateKey) + log.Info("allow origins:", AppConfig.ServiceAddress) r.Use(cors.New(cors.Config{ - AllowOrigins: []string{AppConfig.ServiceAddress}, + AllowOrigins: []string{"*"}, AllowMethods: []string{"GET", "POST", "PUT", "DELETE"}, AllowHeaders: []string{"Origin", "Content-Type", "Accept"}, ExposeHeaders: []string{"Content-Length"},