问题描述
前端 vue 框架,后台 php,百度跨域问题后台加这段代码
header("Access-Control-Allow-Origin: *");
加了之后报这个错:
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'.
#解决办法
文章链接:CORS: credentials mode is ‘include’
xhrFields: {
withCredentials: false
},