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{
|
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,
|
AllowCredentials: true,
|
||||||
AllowOrigins: "http://*, https://*",
|
AllowMethods: "GET,POST,HEAD,PUT,DELETE,PATCH,OPTIONS",
|
||||||
AllowHeaders: "Origin, Content-Type, Accept, Authorization, Access-Control-Allow-Origin",
|
|
||||||
AllowMethods: "GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS",
|
|
||||||
}))
|
}))
|
||||||
|
|
||||||
if err := database.ConnectDB(); err != nil {
|
if err := database.ConnectDB(); err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue