1$.ajax({ 2 type:"get", 3 dataType:"json", 4 url: "http://sso.test.com/userinfo", 5 crossDomain:true, 6 xhrFields: { 7 withCredentials: true 8 }, 9 success: function(ret){ 10 console.log(ret); 11 } 12});
Ajax跨域请求COOKIE无法带上的解决办法
Stella981
2021-10-11
1021 0 0
点赞
收藏
评论区
加载中...