Spring Rest Service - Invalid CSRF token when I attempt to login

后端 未结 3 1009
Happy的楠姐
Happy的楠姐 2021-01-05 10:31

I have a Spring MVC REST service, with Spring Security (3.2.5.RELEASE) enabled. When I turn on @EnableWebMvcSecurity, a login form is automatically generated for me at http:

3条回答
  •  暖寄归人
    2021-01-05 11:23

    you need , https://spring.io/blog/2013/08/21/spring-security-3-2-0-rc1-highlights-csrf-protection/#ajax-requests

    or if you are using thymeleaf

提交回复
热议问题