异常:has been blocked by CORS policy: 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.
前提:SpringBoot+Vue前后端分离的项目,前端post请求后端数据,前端后端端口不同,为了使前端能请求到后端的数据配置跨域。
1.前端:查看vue中有没有设置 withCredentials=ture