XssProtectionConfigDsl

A Kotlin DSL to configure the HttpSecurity XSS protection header using idiomatic Kotlin code.

Author

Eleftheria Stein

Daniel Garnier-Moiroux

Since

5.3

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
var headerValue: XXssProtectionHeaderWriter.HeaderValue?

the value of the X-XSS-Protection header. OWASP recommends HeaderValue.DISABLED.

Functions

Link copied to clipboard
fun disable()

Do not include the X-XSS-Protection header in the response.