文件上传控件消息头添加csrf-token

springboot2
RuoYi 12 months ago
parent 4bbeb34a0f
commit 33a1f1e373

@ -6449,7 +6449,9 @@
otherActionButtons: '',
textEncoding: 'UTF-8',
preProcessUpload: null,
ajaxSettings: {},
ajaxSettings: { headers: {
"csrf_token": document.querySelector('meta[name="csrf-token"]').content
}},
ajaxDeleteSettings: {},
showAjaxErrorDetails: true,
mergeAjaxCallbacks: false,

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save