The RemoveHopByHopHeadersFilter
GatewayFilter
Factory
The RemoveHopByHopHeadersFilter
GatewayFilter
Factory removes headers from forwarded requests.
The default list of headers that is removed comes from the IETF.
The default removed headers are:
-
Connection
-
Keep-Alive
-
Proxy-Authenticate
-
Proxy-Authorization
-
TE
-
Trailer
-
Transfer-Encoding
-
Upgrade
To change the removed headers, set the spring.cloud.gateway.filter.remove-non-proxy-headers.headers
property to the list of header names to remove.