目录
问题描述:
Access to XMLHttpRequest at 'http://' 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跨域解决:
corsConfiguration.setAllowCredentials(true);//这个是关键 在配置中加上这行代码