跨域ajax请求携带cookie

通过withCredentials

 

方式:

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

posted @ 2018-08-01 14:26  直钩钓鱼  阅读(204)  评论(0)    收藏  举报