update headers
This commit is contained in:
2
local/utl/server/server.go
Normal file → Executable file
2
local/utl/server/server.go
Normal file → Executable file
@@ -44,7 +44,7 @@ func Start(di *dig.Container) *fiber.App {
|
|||||||
|
|
||||||
app.Use(cors.New(cors.Config{
|
app.Use(cors.New(cors.Config{
|
||||||
AllowOrigins: allowedOrigin,
|
AllowOrigins: allowedOrigin,
|
||||||
AllowHeaders: "Origin, Content-Type, Accept, Authorization",
|
AllowHeaders: "Origin, Content-Type, Accept, Authorization, Access-Token",
|
||||||
AllowMethods: "GET, POST, PUT, DELETE, OPTIONS",
|
AllowMethods: "GET, POST, PUT, DELETE, OPTIONS",
|
||||||
AllowCredentials: true,
|
AllowCredentials: true,
|
||||||
MaxAge: 86400, // 24 hours
|
MaxAge: 86400, // 24 hours
|
||||||
|
|||||||
Reference in New Issue
Block a user