From f90cc4d8dddbfade027ea54b18c9a1ae571221ad Mon Sep 17 00:00:00 2001 From: nquidox Date: Fri, 12 Sep 2025 23:53:17 +0300 Subject: [PATCH] allow all origins on dev stage --- internal/router/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/router/handler.go b/internal/router/handler.go index ae4f30a..e3b14d0 100644 --- a/internal/router/handler.go +++ b/internal/router/handler.go @@ -39,7 +39,7 @@ func NewRouter(deps Deps) interfaces.Router { } engine.Use(cors.New(cors.Config{ - AllowOrigins: []string{"http://localhost:5173"}, + AllowOrigins: []string{"*"}, AllowMethods: []string{"GET", "POST", "PUT", "DELETE", "OPTIONS"}, AllowHeaders: []string{"Origin", "Content-Type", "Authorization"}, ExposeHeaders: []string{"Content-Length"},