Skip to content

Commit 87742e8

Browse files
committed
Merge branch '2.7.x' into 3.0.x
Closes gh-38070
2 parents ce1f8d4 + 3872ec8 commit 87742e8

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
@@ -442,8 +442,8 @@ There are also non-standard headers, like `X-Forwarded-Host`, `X-Forwarded-Port`
442442
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.
443443
With this option, the Web servers themselves natively support this feature; you can check their specific documentation to learn about specific behavior.
444444

445-
If this is not enough, Spring Framework provides a {spring-framework-docs}/web.html#filters-forwarded-headers[ForwardedHeaderFilter].
446-
You can register it as a servlet filter in your application by setting `server.forward-headers-strategy` is set to `FRAMEWORK`.
445+
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.
446+
You can use them in your application by setting configprop:server.forward-headers-strategy[] to `FRAMEWORK`.
447447

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

0 commit comments

Comments
 (0)