跨域ajax请求携带cookie

通过withCredentials

方式:

getCompanySubject: function () {
return axios.get(this.apiUrls.getCompanySubjectUrl, { withCredentials: true });
}

原文地址:https://www.cnblogs.com/xuguanghui/p/9401053.html