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();
}