Class ServerHttpSecurity.HeaderSpec.XssProtectionSpec

    • Method Detail

      • headerValue

        public ServerHttpSecurity.HeaderSpec headerValue​(org.springframework.security.web.server.header.XXssProtectionServerHttpHeadersWriter.HeaderValue headerValue)
        Sets the value of x-xss-protection header. OWASP recommends using XXssProtectionServerHttpHeadersWriter.HeaderValue.DISABLED.
        Parameters:
        headerValue - the headerValue
        Returns:
        the ServerHttpSecurity.HeaderSpec to continue configuring
        Since:
        5.8