Invalid CSRF Token 'null' was found on the request parameter '_csrf' or header 'X-CSRF-TOKEN'

前端 未结 11 2477
你的背包
你的背包 2020-12-07 15:38

After configuring Spring Security 3.2, _csrf.token is not bound to a request or a session object.

This is the spring security config:

&l         


        
11条回答
  •  失恋的感觉
    2020-12-07 15:57

    i think csrf only works with spring forms

    <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
    

    change to form:form tag and see it that works.

提交回复
热议问题