原创地址:https://www.w11.site/huidheiuhd/
修改://django 部分
timeout: 0,
// xsrfCookieName: 'XSRF-TOKEN',
xsrfCookieName: 'csrftoken',//django
// xsrfHeaderName: 'X-XSRF-TOKEN',
xsrfHeaderName: 'X-CSRFToken', //django
maxContentLength: -1,
validateStatus: function validateStatus(status) {
return status >= 200 && status < 300;