【发布时间】:2015-11-03 05:19:16
【问题描述】:
我在 Spring 安全配置中启用了 csrf 令牌。但是移动设备如何接收 csrf 令牌?当我有jsp时,它看起来像:
<input type='hidden' name='${_csrf.parameterName}' value='${_csrf.token}'/>
但是现在我没有jsp...所以有什么方法可以手动发送csrf?
【问题讨论】:
-
你在spring security config xml中声明了吗?
-
当我们从不同的域访问服务时,最好禁用 csrf 令牌。
标签: spring rest security token csrf