Package | Description |
---|---|
org.springframework.security.config.annotation.web.builders | |
org.springframework.security.config.annotation.web.configurers |
Modifier and Type | Method and Description |
---|---|
HeadersConfigurer<HttpSecurity> |
HttpSecurity.headers()
Adds the Security headers to the response.
|
Modifier and Type | Method and Description |
---|---|
HeadersConfigurer<H> |
HeadersConfigurer.addHeaderWriter(HeaderWriter headerWriter)
Adds a
HeaderWriter instance |
HeadersConfigurer<H> |
HeadersConfigurer.cacheControl()
|
HeadersConfigurer<H> |
HeadersConfigurer.contentTypeOptions()
Adds
XContentTypeOptionsHeaderWriter which inserts the X-Content-Type-Options: |
HeadersConfigurer<H> |
HeadersConfigurer.frameOptions()
Adds
XFrameOptionsHeaderWriter with all the default settings. |
HeadersConfigurer<H> |
HeadersConfigurer.httpStrictTransportSecurity()
Adds
HstsHeaderWriter which provides support for HTTP Strict Transport Security
(HSTS). |
HeadersConfigurer<H> |
HeadersConfigurer.xssProtection()
Note this is not comprehensive XSS protection!
XXssProtectionHeaderWriter which adds the X-XSS-Protection header |
Copyright © 2019. All rights reserved.