Search code examples
springspring-mvcspring-securitycsrfcsrf-protection

How to Implement AntiCSRF Token in Spring MVC(3.2.5) Project [EDITED]


I Upgraded from Spring 3.0.6 to 3.2.5 and included spring-security-web-3.2.9.RELEASE.jar But now how to implement csrf token and how to configure it. I refereed to this blog but cant understand the configuration.


Solution

  • CSRF protection was introduced in Spring Security 3.2. According maven, Spring Security 3.2 has a dependency on spring-core-3.2.6-RELEASE, so I would say no. You will have to upgrade the version of spring.