fix: allow headers

main
Nilo Roberto C Paim 2023-11-13 13:46:18 -03:00
parent de41f43fdc
commit 3f9109cef8
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ func main() {
// CORS
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: "*",
AllowCredentials: true,
AllowMethods: "GET,POST,HEAD,PUT,DELETE,PATCH,OPTIONS",