这两个xhrFields、crossDomain是干吗用的?
$.ajax({
xhrFields: {
withCredentials: true
},
crossDomain:true,
});
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
crossDomain 应该是跨域方面的支持
withCredentials: true 这个代表发送跨域请求