1.欺骗服务器,让服务器认为所有的请求头都来源于一台服务器
$(function () {
initMenu("menu");
$.ajax({
url: BaseUrl + 'user/getUserInfoById',
xhrFields:{
withCredentials:true
},
type: 'get',
dataType: 'json',
success: function (data) {
}
})
})
复制代码