fix bug
All checks were successful
Build and Release / release (push) Successful in 1m6s

This commit is contained in:
2026-04-19 19:57:09 +07:00
parent 80f054df63
commit f127e2f029

View File

@@ -68,10 +68,8 @@ func (s *FiberServer) SetupServer(
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",
"https://localhost:3001", "https://history-admin.kain.id.vn",
"http://localhost:3344",
}, },
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"},