Summary
We should add the ability to have a custom ServerHttpHeadersWriter to HeaderSpec.
@Bean
SecurityWebFilterChain springSecurityFilterChain(ServerHttpSecurity http) {
http
// ...
.headers(headers ->
headers
.writer(serverHttpHeadersWriter)
);
return http.build();
}
Comment From: ankurpathak
@rwinch I would like to take this one.
Comment From: jzheaux
It's yours, @ankurpathak!
Comment From: jzheaux
Hi, @ankurpathak, will you still be able to take a look at this?
Comment From: ankurpathak
@jzheaux I will submit pr in this week
Comment From: ankurpathak
@jzheaux @rwinch Here is a pull request for the issue: https://github.com/spring-projects/spring-security/pull/8028 @jzheaux Sorry for the delayed work as I got busy with my professional project.