AXIOS:
// withCredentials
表示跨域请求时是否需要使用凭证
withCredentials: false, // 默认的
地址:https://www.kancloud.cn/yunye/axios/234845
即跨域请求要想带上cookie,须在ajax请求里加上xhrFields: {withCredentials: true}, crossDomain: true
通过withCredentials前后端分离跨域携带cookie
最新推荐文章于 2022-05-13 14:36:53 发布