When allowCredentials is true, allowedOrigins cannot contain the special value "*" since that cannot be set on the "Access-Control-Allow-Origin" response header. To allow credentials to a set of origins, list them explicitly or consider using "allowedOriginPatterns" instead.
解决很简单,要么在pom文件降低springboot版本,要么就在写跨越的方法里面
将.allowedOrigins("*")改成.allowedOriginPatterns("*")//设置允许跨域请求的域名
即可解决


![[会写代码的健身爱好者错误记录]之Springboot升级成2.4及以上出现的跨越的问题 [会写代码的健身爱好者错误记录]之Springboot升级成2.4及以上出现的跨越的问题](http://www.mshxw.com/aiimages/31/461934.png)
