SpringSecurity StrictHttpFirewall isn't validating the headers
I am trying to add my custom StrictHttpFirewall to be able to reject requests in case of headers are not matching the my pattern.
I have the following configuration of Spring security:
@Configuration
@EnableWebSecurity
class SecurityConfig {
companion object {
private val HEADER_NAME_PATTERN = "^[a-z1-9_-]{1,512}$".toRegex(RegexOption.IGNORE_CASE)
private val HEADER_VALUE_BASE_PATTERN = "[\\p{IsAssigned}&&[^\\p{IsControl}]]*".toRegex()
private val...