changed allowed headers

pull/1/head
Nilo Roberto C Paim 2023-08-14 08:19:59 -03:00
parent e083313779
commit da43388a8f
1 changed files with 3 additions and 3 deletions

View File

@ -44,10 +44,10 @@ func main() {
}))
app.Use(cors.New(cors.Config{
AllowHeaders: "Origin,Content-Type,Accept,Content-Length,Accept-Language,Accept-Encoding,Connection,Access-Control-Allow-Origin",
AllowOrigins: "*",
AllowCredentials: true,
AllowOrigins: "http://*, https://*",
AllowHeaders: "Origin, Content-Type, Accept, Authorization, Access-Control-Allow-Origin",
AllowMethods: "GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS",
AllowMethods: "GET,POST,HEAD,PUT,DELETE,PATCH,OPTIONS",
}))
if err := database.ConnectDB(); err != nil {