Brian Clozel
b9fb384f8d
Update Forwarded headers support for Framework
...
Prior to this commit, Spring Boot would auto-configure the
`ForwardedHeaderFilter`/`ForwardedHeaderTransformer` when the "NATIVE"
strategy is chosen.
Spring Framework now requires an explicit choice between the supported
HTTP header variants as of spring-projects/spring-framework#37072 .
This commit adapts to this new behavior with the following:
* the "FRAMEWORK" strategy now only applies to Spring MVC and Spring
WebFlux applications, since "NATIVE" strategies are now a good choice
for most deployments.
* the format of HTTP headers is now configured with
`spring.mvc.forwarded-headers.header-format` and
`spring.webflux.forwarded-headers.header-format`, with additional
options.
The default header format is now "X-Forwarded-*" for both NATIVE and
FRAMEWORK strategies. The reference documentation also reflects those
changes.
Closes gh-51030
2026-07-29 14:45:12 +02:00
..
2026-05-30 14:28:53 +02:00
2026-07-27 21:16:50 +02:00
2026-07-15 12:05:23 +02:00
2026-07-21 08:27:22 +02:00
2026-07-15 18:11:53 +02:00
2026-07-15 11:37:31 +02:00
2026-05-14 15:02:24 +01:00
2026-07-15 18:11:53 +02:00
2026-07-24 15:57:23 +02:00
2026-05-14 15:03:44 +01:00
2026-07-24 15:57:23 +02:00
2026-05-14 15:03:44 +01:00
2026-05-14 15:02:24 +01:00
2026-05-30 16:26:48 +02:00
2026-07-25 08:32:32 +02:00
2026-05-14 15:02:24 +01:00
2026-05-14 15:02:24 +01:00
2026-05-14 15:02:24 +01:00
2026-05-14 15:02:24 +01:00
2026-05-14 15:02:24 +01:00
2026-05-14 15:02:24 +01:00
2026-05-14 15:02:24 +01:00
2026-05-14 15:02:24 +01:00
2026-05-14 15:02:24 +01:00
2026-05-14 15:02:24 +01:00
2026-07-14 17:11:14 +02:00
2026-05-14 15:03:44 +01:00
2026-05-14 15:02:24 +01:00
2026-05-14 15:02:24 +01:00
2026-05-30 14:28:53 +02:00
2026-05-14 15:02:24 +01:00
2026-05-14 15:02:24 +01:00
2026-05-14 15:02:24 +01:00
2026-05-14 15:02:24 +01:00
2026-05-14 15:02:24 +01:00
2026-07-15 09:45:44 +02:00
2026-05-14 15:02:24 +01:00
2026-05-14 15:03:44 +01:00
2026-07-27 16:13:10 +02:00
2026-05-30 14:39:57 +02:00
2026-07-16 15:39:30 +02:00
2026-07-15 11:37:31 +02:00
2026-07-03 12:32:28 +02:00
2026-05-14 15:02:24 +01:00
2026-05-14 15:02:24 +01:00
2026-07-15 13:25:59 +02:00
2026-07-23 14:23:55 +02:00
2026-05-14 15:03:44 +01:00
2026-07-14 11:23:34 +02:00
2026-07-22 11:40:12 +02:00
2026-05-14 15:02:24 +01:00
2026-05-14 15:02:24 +01:00
2026-05-14 15:03:44 +01:00
2026-07-15 11:37:31 +02:00
2026-06-02 09:52:02 -07:00
2026-07-16 14:52:42 +02:00
2026-07-27 21:16:50 +02:00
2026-05-14 15:03:44 +01:00
2026-07-14 11:38:01 +02:00
2026-07-14 11:23:34 +02:00
2026-06-24 19:12:35 +01:00
2026-05-14 15:02:24 +01:00
2026-07-27 21:12:35 +02:00
2026-07-27 19:51:11 +02:00
2026-07-16 11:23:19 +02:00
2026-05-14 15:03:44 +01:00
2026-05-14 15:03:44 +01:00
2026-07-15 11:37:31 +02:00
2026-05-14 15:03:44 +01:00
2026-05-14 15:02:24 +01:00
2026-07-16 11:37:14 +02:00
2026-07-14 11:23:34 +02:00
2026-07-15 11:37:31 +02:00
2026-05-30 14:39:57 +02:00
2026-07-15 11:37:31 +02:00
2026-07-28 10:17:37 +02:00
2026-07-29 11:37:35 +02:00
2026-05-14 15:02:24 +01:00
2026-06-24 19:12:35 +01:00
2026-07-14 11:38:01 +02:00
2026-07-15 20:19:19 +02:00
2026-05-14 15:02:24 +01:00
2026-07-15 20:19:19 +02:00
2026-07-27 16:13:10 +02:00
2026-07-15 20:19:19 +02:00
2026-05-14 15:02:24 +01:00
2026-07-25 17:25:28 +02:00
2026-05-14 15:02:24 +01:00
2026-07-15 20:19:19 +02:00
2026-07-15 11:37:31 +02:00
2026-07-15 20:19:19 +02:00
2026-07-15 20:19:19 +02:00
2026-05-30 14:28:53 +02:00
2026-05-29 11:13:56 +02:00
2026-07-25 08:32:32 +02:00
2026-07-27 21:12:35 +02:00
2026-05-14 15:02:24 +01:00
2026-07-27 21:12:35 +02:00
2026-05-31 16:31:58 +02:00
2026-05-14 15:02:24 +01:00
2026-07-27 16:13:10 +02:00
2026-07-15 11:37:31 +02:00
2026-07-15 11:37:31 +02:00
2026-06-24 17:54:30 +01:00
2026-06-28 12:14:56 +01:00
2026-05-30 15:45:22 +02:00
2026-05-14 15:02:24 +01:00
2026-07-24 15:10:43 +02:00
2026-07-15 20:19:19 +02:00
2026-05-14 15:03:44 +01:00
2026-05-14 15:03:44 +01:00
2026-05-14 15:02:24 +01:00
2026-05-14 15:03:44 +01:00
2026-05-30 14:39:57 +02:00
2026-07-29 14:45:12 +02:00
2026-05-14 15:02:24 +01:00
2026-05-14 15:02:24 +01:00
2026-07-29 14:45:12 +02:00
2026-05-14 15:03:44 +01:00
2026-06-24 12:15:19 +01:00
2026-05-14 15:02:24 +01:00
2026-07-29 14:45:12 +02:00
2026-05-14 15:02:24 +01:00
2026-07-29 14:45:12 +02:00
2026-07-24 08:51:46 +02:00
2026-07-15 11:37:31 +02:00
2026-05-14 15:02:24 +01:00
2026-07-24 15:10:43 +02:00
2026-07-14 11:23:34 +02:00
2026-05-14 15:02:24 +01:00