【发布时间】:2015-03-16 19:06:35
【问题描述】:
我正在上传一个文件。该jsp具有以下内容。
<form id="uploadRepoData" enctype="multipart/form-data">
<input style="width: 250px" type="file" name="loadfile" class="loadInputDisplay"/>
单击提交按钮时,csrf 令牌会附加到表单并完成发布请求。 但是,该请求似乎有一个空 csrf 令牌,因此该请求被认为是一个无效请求,并且 它失败了。
我不知道如何解决这个问题。
【问题讨论】:
-
能分享一下spring security的配置吗?
标签: spring model-view-controller csrf csrf-protection