【跨域】--- 跨域报错
文章目录
报错包含:: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.
解决办法:
axios.defaults.withCredentials = false;
(把 ture改为false 即可)
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论