UPDATE: Fix bug
All checks were successful
Build and Release / release (push) Successful in 1m10s

This commit is contained in:
2026-04-28 15:23:37 +07:00
parent 5a4fb2e45b
commit bfe223879b
2 changed files with 2 additions and 0 deletions

View File

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

View File

@@ -441,6 +441,7 @@ func (h *AuthController) GoogleCallback(c fiber.Ctx) error {
"http://localhost:3000": true, "http://localhost:3000": true,
"http://localhost:3001": true, "http://localhost:3001": true,
"https://history-admin.kain.id.vn": true, "https://history-admin.kain.id.vn": true,
"https://history-user.kain.id.vn": true,
} }
feUrl := config.GetConfigWithDefault("FRONTEND_URL", "http://localhost:3000") feUrl := config.GetConfigWithDefault("FRONTEND_URL", "http://localhost:3000")
redirectURL := data.RedirectURL redirectURL := data.RedirectURL