xhrFields: {
    withCredentials: true, //解决跨域问题
    credentials: 'include',//解决前端加入Cookie请求头的问题
},

 

 

更多推荐

解决前端ajax跨域请求不携带cookie信息JSESSIONID的问题