Skip to content

Add custom ServerHttpHeadersWriter to HeadersSpec  #7636

Closed
@rwinch

Description

@rwinch

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

Metadata

Metadata

Assignees

Labels

in: configAn issue in spring-security-configtype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions