UPDATE: try fix cookie
Some checks failed
Build and Release / release (push) Has been cancelled

This commit is contained in:
2026-03-31 23:03:15 +07:00
parent 08f56bdd14
commit 9564ca566c

View File

@@ -60,11 +60,10 @@ func (s *FiberServer) SetupServer(sqlPg sqlc.DBTX, sqlTile *sql.DB, redis cache.
s.App.Use(cors.New(cors.Config{ s.App.Use(cors.New(cors.Config{
AllowOrigins: []string{ AllowOrigins: []string{
"http://localhost:3000", "http://localhost:3000",
"https://localhost:3000",
"http://localhost:3001", "http://localhost:3001",
"http://localhost:3002", "https://localhost:3001",
"http://localhost:3344", "http://localhost:3344",
"http://localhost:5173",
"http://localhost:5500",
}, },
AllowMethods: []string{"GET", "POST", "PUT", "DELETE", "OPTIONS", "PATCH"}, AllowMethods: []string{"GET", "POST", "PUT", "DELETE", "OPTIONS", "PATCH"},
AllowHeaders: []string{"Accept", "Authorization", "Content-Type", "Origin"}, AllowHeaders: []string{"Accept", "Authorization", "Content-Type", "Origin"},