changed AllowHeaders

pull/1/head
Nilo Roberto C Paim 2023-08-13 07:56:25 -03:00
parent 26eb432b23
commit 0948f2c5f5
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ func main() {
app.Use(cors.New(cors.Config{
AllowCredentials: true,
AllowOrigins: "http://*, https://*",
AllowHeaders: "Origin, Content-Type, Accept, Authorization, Access-Control-Allow-Origin",
AllowHeaders: "Origin, Content-Type, User-Agent, Connection, User-Agent, Accept, Authorization, Access-Control-Allow-Origin",
AllowMethods: "GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS",
}))