spring-security
spring-security copied to clipboard
CsrfDsl does not have a spa() configuration method.
Describe the bug
According to the documentation, org.springframework.security.config.annotation.web.CsrfDsl should have a spa() configuration method, but it doesn't.
https://docs.spring.io/spring-security/reference/servlet/exploits/csrf.html#csrf-integration-javascript-spa
To Reproduce
@Bean
open fun securityFilterChain(http: HttpSecurity): SecurityFilterChain {
http {
// ...
csrf {
spa()
}
}
return http.build()
}
Expected behavior According to the documentation, CsrfDsl should have a spa() configuration method.
@jzheaux ping
Issue still remains.
Any updates on this other than the workaround to use the Java API?