mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-23 12:32:13 +00:00
SEC-2230: Fix Header tests
This commit is contained in:
parent
2e852f4613
commit
e0cad0d684
@ -71,7 +71,7 @@ public final class HeadersConfigurer<H extends HttpSecurityBuilder<H>> extends A
|
|||||||
* @return the {@link HeadersConfigurer} for additional customizations
|
* @return the {@link HeadersConfigurer} for additional customizations
|
||||||
*/
|
*/
|
||||||
public HeadersConfigurer<H> xssProtection() {
|
public HeadersConfigurer<H> xssProtection() {
|
||||||
return addHeaderWriter(new XContentTypeOptionsHeaderWriter());
|
return addHeaderWriter(new XXssProtectionHeaderWriter());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user