This commit is contained in:
@@ -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"},
|
||||||
|
|||||||
Reference in New Issue
Block a user