axios 跨域请求带上cookie

时间:2020-05-01
return axios.post(url, data, {
	withCredentials: true
});

只需要配置withCredentials: true

服务器端需要响应

Access-Control-Allow-Credentials: true