springboot项目可能是跨域问题?

单独打开后端的时候还没有报错,一打开前端网页就开始报错,
前端页面也没有数据,页面也不能跳转

ERROR 24288 --- [nio-8085-exec-1] o.a.c.c.C.[Tomcat].[localhost] : Exception Processing ErrorPage[errorCode=0, location=/error]

ERROR 24288 --- [nio-8085-exec-1] o.a.c.c.C.[Tomcat].[localhost] : Exception Processing ErrorPage[errorCode=0, location=/error]

Caused by: 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.

我的解答思路和尝试过的方法

尝试过关闭防火墙
加过一些跨域的代码

跨域代码发出来看看

当AllowCredentials为True时,AllowedOrigins不能包含特殊值“*”,因为该值不能在“Access-Control-Allow-Origin”响应报头上设置。要允许凭据访问一组来源,请显式列出它们或考虑改用“AllowedOriginPatterns”。

打开前端控制台:

img

打开后端网址:

img