Skip to content

Commit

Permalink
Allow all incoming headers for auth request (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
coffee-cup authored Oct 29, 2020
1 parent 8b2be22 commit 4d63813
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func (c *Controller) browserBasedLogin(ctx context.Context) (*entity.User, error
w.Write(byteRes)
} else if r.Method == http.MethodOptions {
w.Header().Set("Access-Control-Allow-Methods", "GET, HEAD, PUT, PATCH, POST, DELETE")
w.Header().Set("Access-Control-Allow-Headers", "authorization")
w.Header().Set("Access-Control-Allow-Headers", "*")
w.Header().Set("Content-Length", "0")
w.WriteHeader(204)
return
Expand Down

0 comments on commit 4d63813

Please sign in to comment.