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

pull/553/head
RuoYi 2025-04-28 14:38:21 +08:00
parent 4bbeb34a0f
commit 33a1f1e373
2 changed files with 4 additions and 2 deletions

View File

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

File diff suppressed because one or more lines are too long