0
点赞
收藏
分享

微信扫一扫

axios设置withCredentials

白衣蓝剑冰魄 2022-08-03 阅读 64


在axios的参数中写入:

withCredentials:true

main.js 配置:

Vue.prototype.$axios = axios;
axios.defaults.withCredentials = true;


举报

相关推荐

0 条评论