changed allowed headers
parent
e083313779
commit
da43388a8f
6
main.go
6
main.go
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue