From bfe223879b8a59afe5aae8e0ea456f9fcae8855d Mon Sep 17 00:00:00 2001 From: AzenKain Date: Tue, 28 Apr 2026 15:23:37 +0700 Subject: [PATCH] UPDATE: Fix bug --- cmd/api/server.go | 1 + internal/controllers/authController.go | 1 + 2 files changed, 2 insertions(+) diff --git a/cmd/api/server.go b/cmd/api/server.go index 20150f0..861ade8 100644 --- a/cmd/api/server.go +++ b/cmd/api/server.go @@ -70,6 +70,7 @@ func (s *FiberServer) SetupServer( "http://localhost:3000", "http://localhost:3001", "https://history-admin.kain.id.vn", + "https://history-user.kain.id.vn", }, AllowMethods: []string{"GET", "POST", "PUT", "DELETE", "OPTIONS", "PATCH"}, AllowHeaders: []string{"Accept", "Authorization", "Content-Type", "Origin"}, diff --git a/internal/controllers/authController.go b/internal/controllers/authController.go index bfad853..cccc0e2 100644 --- a/internal/controllers/authController.go +++ b/internal/controllers/authController.go @@ -441,6 +441,7 @@ func (h *AuthController) GoogleCallback(c fiber.Ctx) error { "http://localhost:3000": true, "http://localhost:3001": true, "https://history-admin.kain.id.vn": true, + "https://history-user.kain.id.vn": true, } feUrl := config.GetConfigWithDefault("FRONTEND_URL", "http://localhost:3000") redirectURL := data.RedirectURL