This commit is contained in:
@@ -68,10 +68,8 @@ func (s *FiberServer) SetupServer(
|
||||
s.App.Use(cors.New(cors.Config{
|
||||
AllowOrigins: []string{
|
||||
"http://localhost:3000",
|
||||
"https://localhost:3000",
|
||||
"http://localhost:3001",
|
||||
"https://localhost:3001",
|
||||
"http://localhost:3344",
|
||||
"https://history-admin.kain.id.vn",
|
||||
},
|
||||
AllowMethods: []string{"GET", "POST", "PUT", "DELETE", "OPTIONS", "PATCH"},
|
||||
AllowHeaders: []string{"Accept", "Authorization", "Content-Type", "Origin"},
|
||||
|
||||
Reference in New Issue
Block a user