I am using Spring Security with a stateless web service. I would like to use the CSRF features in Spring Security 3.2. Is this possible with a stateless web application?
This is the appropriate Java Config since I currently have to disable CSRF.
@Override protected void configure(HttpSecurity http) throws Exception { http .sessionManagement() .sessionCreationPolicy(SessionCreationPolicy.STATELESS) .sessionFixation().none().and() .csrf().disable(); }
java spring-security csrf
checketts
source share