csrf
Enables CSRF protection.
Example:
@Configuration
@EnableWebFluxSecurity
class SecurityConfig {
@Bean
fun springWebFilterChain(http: ServerHttpSecurity): SecurityWebFilterChain {
return http {
csrf { }
}
}
}Content copied to clipboard
Parameters
csrfConfiguration
custom configuration to apply to the CSRF protection