Ajax跨域请求COOKIE无法带上的解决办法

$.ajax({
    type:"get",
    dataType:"json",
    url: "http://sso.test.com/userinfo",
    crossDomain:true,
    xhrFields: {
        withCredentials: true
    },
    success: function(ret){
        console.log(ret);
    }
});

评论

暂无评论