Skip to content

ajax跨域请求不携带cookie问题

Ajax远程登录不携带cookie,所以浏览器默认识别还没有登录。

解决方法:在Ajax里面添加crossDomain: true, xhrFields: {withCredentials: true}