美文网首页程序员
2018-07-16 vue axios跨域请求允许跨域携带c

2018-07-16 vue axios跨域请求允许跨域携带c

作者: small_zeo | 来源:发表于2018-07-16 17:16 被阅读0次

    把默认配置withCredentials改为true,就可以允许跨域携带cookie信息了

    Vue.axios.defaults.withCredentials = true;

    转 :https://blog.csdn.net/guoscy/article/details/78953532

    相关文章

      网友评论

        本文标题:2018-07-16 vue axios跨域请求允许跨域携带c

        本文链接:https://www.haomeiwen.com/subject/wqibpftx.html