Class HeadersConfigurer.ContentTypeOptionsConfig
java.lang.Object
org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.ContentTypeOptionsConfig
- Enclosing class:
- HeadersConfigurer<H extends HttpSecurityBuilder<H>>
-
Method Details
-
disable
Removes the X-XSS-Protection header.- Returns:
HeadersConfigurerfor additional customization.
-
and
Deprecated, for removal: This API element is subject to removal in a future version.For removal in 7.0. UseHeadersConfigurer.contentTypeOptions(Customizer)insteadAllows customizing theHeadersConfigurer- Returns:
- the
HeadersConfigurerfor additional customization
-