fix: allow headers
parent
de41f43fdc
commit
3f9109cef8
2
main.go
2
main.go
|
|
@ -69,7 +69,7 @@ func main() {
|
||||||
|
|
||||||
// CORS
|
// CORS
|
||||||
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",
|
AllowHeaders: "Origin,Content-Type,Accept,Content-Length,Accept-Language,Accept-Encoding,Connection,Access-Control-Allow-Origin,X-API-KEY,Authorization",
|
||||||
AllowOrigins: "*",
|
AllowOrigins: "*",
|
||||||
AllowCredentials: true,
|
AllowCredentials: true,
|
||||||
AllowMethods: "GET,POST,HEAD,PUT,DELETE,PATCH,OPTIONS",
|
AllowMethods: "GET,POST,HEAD,PUT,DELETE,PATCH,OPTIONS",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue