【发布时间】:2016-01-12 13:02:54
【问题描述】:
我在春天读到documentation 需要使用 post 方法提交注销。类似于:
<c:url var="logoutUrl" value="/problemSolution/logout"/>
<form action="${logoutUrl}" id="logout" method="post">
<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
</form>
<a href="#" onclick="document.getElementById('logout').submit();">Logout</a>
为什么会这样?
【问题讨论】:
标签: spring spring-security csrf