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

Commit

Permalink
fix: cors for gnap
Browse files Browse the repository at this point in the history
Signed-off-by: Andrii Holovko <[email protected]>
  • Loading branch information
aholovko committed Jun 29, 2022
1 parent f7d893a commit eabc959
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 eabc959

Please sign in to comment.