allow all origins on dev stage

This commit is contained in:
nquidox 2025-09-12 23:53:17 +03:00
parent 07c8a5bf35
commit f90cc4d8dd

View file

@ -39,7 +39,7 @@ func NewRouter(deps Deps) interfaces.Router {
} }
engine.Use(cors.New(cors.Config{ engine.Use(cors.New(cors.Config{
AllowOrigins: []string{"http://localhost:5173"}, AllowOrigins: []string{"*"},
AllowMethods: []string{"GET", "POST", "PUT", "DELETE", "OPTIONS"}, AllowMethods: []string{"GET", "POST", "PUT", "DELETE", "OPTIONS"},
AllowHeaders: []string{"Origin", "Content-Type", "Authorization"}, AllowHeaders: []string{"Origin", "Content-Type", "Authorization"},
ExposeHeaders: []string{"Content-Length"}, ExposeHeaders: []string{"Content-Length"},