Changes property to spring.cloud.gateway.forwarded.by.enabled

Defaults to false.

See gh-2658
This commit is contained in:
spencergibb
2025-03-17 16:59:19 -04:00
parent 5911816f0d
commit 6ce73c6ec7
5 changed files with 22 additions and 16 deletions

View File

@@ -7,6 +7,10 @@
== Forwarded Headers Filter
The `Forwarded` Headers Filter creates a `Forwarded` header to send to the downstream service. It adds the `Host` header, scheme and port of the current request to any existing `Forwarded` header.
The `Forwarded by` header part can be enabled by setting the following property to true (defaults to false):
- `spring.cloud.gateway.forwarded.by.enabled=true`
[[removehopbyhop-headers-filter]]
== RemoveHopByHop Headers Filter
The `RemoveHopByHop` Headers Filter removes headers from forwarded requests. The default list of headers that is removed comes from the https://tools.ietf.org/html/draft-ietf-httpbis-p1-messaging-14#section-7.1.3[IETF].