ServerHeadersDsl
A Kotlin DSL to configure ServerHttpSecurity headers using idiomatic Kotlin code.
Author
Eleftheria Stein
Since
5.4
Functions
Allows customizing the CacheControlServerHttpHeadersWriter. Specifically it adds the following headers:
Allows configuration for Content Security Policy (CSP) Level 2.
Allows configuration for Cross-Origin-Embedder-Policy header.
Allows configuration for Cross-Origin-Opener-Policy header.
Allows configuration for Cross-Origin-Resource-Policy header.
Allows configuration for Feature Policy.
Allows customizing the XFrameOptionsServerHttpHeadersWriter which add the X-Frame-Options header.
Allows customizing the StrictTransportSecurityServerHttpHeadersWriter which provides support for HTTP Strict Transport Security (HSTS).
Allows configuration for Permissions Policy.
Allows configuration for Referrer Policy.
Note this is not comprehensive XSS protection!