$.ajax({
type:"get",
dataType:"json",
url: "http://sso.test.com/userinfo",
crossDomain:true,
xhrFields: {
withCredentials: true
},
success: function(ret){
console.log(ret);
}
});
Ajax跨域请求COOKIE无法带上的解决办法
点赞
收藏