Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #259 from aholovko/fix_cors_gnap
Browse files Browse the repository at this point in the history
fix: cors for gnap
  • Loading branch information
rolsonquadras authored Jun 29, 2022
2 parents f7d893a + eabc959 commit 5958043
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/auth-rest/startcmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ func constructCORSHandler(handler http.Handler) http.Handler {
return cors.New(
cors.Options{
AllowedMethods: []string{http.MethodGet, http.MethodPost},
AllowedHeaders: []string{"Origin", "Accept", "Content-Type", "X-Requested-With", "Authorization"},
AllowedHeaders: []string{"*"},
},
).Handler(handler)
}
Expand Down

0 comments on commit 5958043

Please sign in to comment.