changed AllowHeaders
parent
26eb432b23
commit
0948f2c5f5
2
main.go
2
main.go
|
|
@ -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",
|
||||
}))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue