我遵循了这个指南:
Invalid CSRF Token 'null' was found on the requestparameter '_csrf' or header 'X-CSRF-TOKEN'./appServlet/spring-security.xml,
/WEB-
免责声明:我知道如何手动将令牌注入到带有胸腺网的表单中:
<input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token,我不需要在表单(POST)上注入CSRF令牌,因为Thymeleaf自动处理它,但是现在由于某种原因它没有。security.ignored= # Comma-separated list of path
嗨,我试着遵循一个简单的例子,我在这个页面http://docs.spring.io/autorepo/docs/spring-security/4.0.x/guides/form.html中找到了一个简单的登录表单页面the CSRF token to our form.If we were not using Thymleaf or Spring MVCs taglib we could also manually add
我正在建立一个使用spring安全和胸腺叶的web应用程序,我让它与登录和注销工作,但我有一些问题,当我尝试注册为最终用户。我收到一个无效的csrf令牌错误。我是个新手,我需要一些帮助。我的问题是如何将令牌附加到该请求?(Post /registration)顺便说一句,我没有使用任何XML,我使用的是注释。: status =403, body ={"timestamp":1430645356572,"status":403,"error&qu