This commit is contained in:
+8
-4
@@ -71,10 +71,14 @@ func (s *FiberServer) SetupServer(
|
|||||||
AllowOrigins: []string{
|
AllowOrigins: []string{
|
||||||
"http://localhost:3000",
|
"http://localhost:3000",
|
||||||
"http://localhost:3001",
|
"http://localhost:3001",
|
||||||
"https://history-admin.kain.id.vn",
|
"https://admin.uhm.io.vn",
|
||||||
"https://history-user.kain.id.vn",
|
"https://api.uhm.io.vn",
|
||||||
"https://www.history-admin.kain.id.vn",
|
"https://cdn.uhm.io.vn",
|
||||||
"https://www.history-user.kain.id.vn",
|
"https://uhm.io.vn",
|
||||||
|
"https://www.admin.uhm.io.vn",
|
||||||
|
"https://www.api.uhm.io.vn",
|
||||||
|
"https://www.cdn.uhm.io.vn",
|
||||||
|
"https://www.uhm.io.vn",
|
||||||
},
|
},
|
||||||
AllowMethods: []string{"GET", "POST", "PUT", "DELETE", "OPTIONS", "PATCH", "HEAD"},
|
AllowMethods: []string{"GET", "POST", "PUT", "DELETE", "OPTIONS", "PATCH", "HEAD"},
|
||||||
AllowHeaders: []string{"Accept", "Authorization", "Content-Type", "Origin", "Range", "Cache-Control", "Pragma", "If-Modified-Since", "If-None-Match"},
|
AllowHeaders: []string{"Accept", "Authorization", "Content-Type", "Origin", "Range", "Cache-Control", "Pragma", "If-Modified-Since", "If-None-Match"},
|
||||||
|
|||||||
@@ -450,10 +450,14 @@ func (h *AuthController) GoogleCallback(c fiber.Ctx) error {
|
|||||||
allowed := map[string]bool{
|
allowed := map[string]bool{
|
||||||
"http://localhost:3000": true,
|
"http://localhost:3000": true,
|
||||||
"http://localhost:3001": true,
|
"http://localhost:3001": true,
|
||||||
"https://history-admin.kain.id.vn": true,
|
"https://admin.uhm.io.vn": true,
|
||||||
"https://history-user.kain.id.vn": true,
|
"https://api.uhm.io.vn": true,
|
||||||
"https://www.history-admin.kain.id.vn": true,
|
"https://cdn.uhm.io.vn": true,
|
||||||
"https://www.history-user.kain.id.vn": true,
|
"https://uhm.io.vn": true,
|
||||||
|
"https://www.admin.uhm.io.vn": true,
|
||||||
|
"https://www.api.uhm.io.vn": true,
|
||||||
|
"https://www.cdn.uhm.io.vn": true,
|
||||||
|
"https://www.uhm.io.vn": true,
|
||||||
}
|
}
|
||||||
feUrl := config.GetConfigWithDefault("FRONTEND_URL", "http://localhost:3000")
|
feUrl := config.GetConfigWithDefault("FRONTEND_URL", "http://localhost:3000")
|
||||||
redirectURL := data.RedirectURL
|
redirectURL := data.RedirectURL
|
||||||
|
|||||||
Reference in New Issue
Block a user