报错内容
java.lang.IllegalArgumentException: 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.
at org.springframework.web.cors.CorsConfiguration.validateAllowCredentials(CorsConfiguration.java:473)
报错原因
使用的spring版本不同
解决方法
找到src/main/java/io/renren/config/CorsConfig.java文件
将allowedOrigin改为allowedOriginPatterns