Skip to content

Commit 3872ec8

Browse files
committed
Mention ForwardedHeaderTransformer in the documentation
Closes gh-37282
1 parent 1498faa commit 3872ec8

File tree

1 file changed

+2
-2
lines changed
  • spring-boot-project/spring-boot-docs/src/docs/asciidoc/howto

1 file changed

+2
-2
lines changed

spring-boot-project/spring-boot-docs/src/docs/asciidoc/howto/webserver.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,8 @@ There are also non-standard headers, like `X-Forwarded-Host`, `X-Forwarded-Port`
454454
If the proxy adds the commonly used `X-Forwarded-For` and `X-Forwarded-Proto` headers, setting `server.forward-headers-strategy` to `NATIVE` is enough to support those.
455455
With this option, the Web servers themselves natively support this feature; you can check their specific documentation to learn about specific behavior.
456456

457-
If this is not enough, Spring Framework provides a {spring-framework-docs}/web.html#filters-forwarded-headers[ForwardedHeaderFilter].
458-
You can register it as a servlet filter in your application by setting `server.forward-headers-strategy` is set to `FRAMEWORK`.
457+
If this is not enough, Spring Framework provides a {spring-framework-docs}/web.html#filters-forwarded-headers[ForwardedHeaderFilter] for the servlet stack and a {spring-framework-docs}/web-reactive.html#webflux-forwarded-headers[ForwardedHeaderTransformer] for the reactive stack.
458+
You can use them in your application by setting configprop:server.forward-headers-strategy[] to `FRAMEWORK`.
459459

460460
TIP: If you are using Tomcat and terminating SSL at the proxy, configprop:server.tomcat.redirect-context-root[] should be set to `false`.
461461
This allows the `X-Forwarded-Proto` header to be honored before any redirects are performed.

0 commit comments

Comments
 (0)