Skip to content

Commit

Permalink
Remove duplicate authorization header forwarding (#1400)
Browse files Browse the repository at this point in the history
* Remove authorization header forwarding

* Add comment per code review
  • Loading branch information
mlline00 authored Jun 3, 2023
1 parent b320645 commit 1086be0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func NewServer(opts ...server_options.ServerOption) *Server {
authMiddleware := server_options.WithAPIMiddleware(([]api.Middleware{
headers.WithForwardHeaders(
[]string{
echo.HeaderAuthorization,
// NOTE: Authorization header is forwarded by grpc-gateway
auth.AuthorizationExtrasHeader,
}),
}))
Expand Down

0 comments on commit 1086be0

Please sign in to comment.