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

springboot3
RuoYi 2025-04-28 14:38:46 +08:00
parent be94b429b6
commit a1f7f6d1ff
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