打开kindeditor/plugins/image/image.js文件,找到以下内容:
url : K.addParam(uploadJson, 'dir=image')
将其改为:
K.addParam(uploadJson, 'dir=image') + "&" + encodeURIComponent($("[name='csrf-param']").attr("content")) + "=" + encodeURIComponent($("[name='csrf-token']").attr("content"))
问题解决
url : K.addParam(uploadJson, 'dir=image')
将其改为:
K.addParam(uploadJson, 'dir=image') + "&" + encodeURIComponent($("[name='csrf-param']").attr("content")) + "=" + encodeURIComponent($("[name='csrf-token']").attr("content"))
问题解决