CSRF (Cross-site request forgery) protection in spring MVC

后端 未结 2 996
萌比男神i
萌比男神i 2021-02-15 02:59

I\'m little confuse in this CSRF (Cross-site request forgery) protection in spring. No I have my jsp and my controller and a web service. What I want to do is validate the token

2条回答
  •  再見小時候
    2021-02-15 03:45

    Apparently I was using spring security 3.1.4.RELEASE. here you have do this manually. Then I changed it to 3.2.2.RELEASE and then I just had to use

    
    

    Refer this link to see whats new in spring security 3.2

    http://docs.spring.io/spring-security/site/docs/3.2.0.RELEASE/reference/htmlsingle/#new

    Be careful, when you change from 3.1.4.RELEASE to 3.2.2.RELEASE, there are lot of confusing re factorings to do. Specially in web.xml and spring-security.xml files

提交回复
热议问题