When allowCredentials is true, allowedOrigins cannot contain the special value “*“ since that cannot出现这个问题的原因是,vue前端前端,跨域访问后端接口,后台跨域配置不符合当前SpringBoot版本产生的问题。 解决方法是,降低SpringBoot的版本在4.1以下即可。版权声明:本文为GaoXiR原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。原文链接:https://blog.csdn.net/GaoXiR/article/details/115653145