在main.js设置
// 携带cookie
axios.defaults.withCredentials = true
Vue -- axios 跨域请求无法带上cookie
最新推荐文章于 2024-06-29 16:33:33 发布
在main.js设置
// 携带cookie
axios.defaults.withCredentials = true