Closed Omkar-Shetkar closed 3 weeks ago
Thanks for the report @Omkar-Shetkar this is a duplicate of https://github.com/spring-projects/spring-security/issues/15989 ( workaround https://github.com/spring-projects/spring-security/issues/15989#issuecomment-2442660753 ) which is superseded by https://github.com/spring-projects/spring-framework/issues/33789
That's very helpful @rwinch. Thank you.
We use org.springframework.http.server.reactive.ServerHttpRequest#mutate to add a header into a HTTP request in a class extending
AbstractGatewayFilterFactory
.This used to work before with spring-security-web < 6.3.4.
Here, type of httpHeaders is
org.springframework.security.web.server.firewall.StrictServerWebExchangeFirewall$StrictFirewallServerWebExchange$StrictFirewallHttpRequest$StrictFirewallHttpHeaders
.After updating the library, getting following error:
Not sure why StrictFirewallHttpHeaders are being treated as ReadOnlyHttpHeaders.
Expected behavior is to be able to add a header into http request.
Please let me know if any other information required in this regard.