mirror of
https://github.com/yangzongzhuan/RuoYi.git
synced 2025-10-15 18:18:28 +00:00
文件上传控件消息头添加csrf-token
This commit is contained in:
@@ -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
Reference in New Issue
Block a user