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("*")//设置允许跨域请求的域名
即可解决
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)