- 📚 相关推荐文章
- credentials to a set of origins, list them explicitly or consider using “allowedOriginPatterns“ 推荐
- Strategy set、Action set和Information set 推荐
- Nacos启动报错:Please set the JAVA 推荐
- Access to DialectResolutionInfo cannot be null when ‘hibernate.dialect‘ not set。 推荐
- Hadoop在启动yarn时报错:Cannot set priority of resourcemanager process xxxxx 推荐

credentials to a set of origins, list them explicitly or consider using “allowedOriginPatterns“
在做gulimall项目时候
1、异常信
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.2、解决方法
由于我的springcloud版本是2.1.0
而renren-first后台管理系统的版本是2.6.6
版本的选择参考:
b(18条消) Spring Boot,Spring Cloud,Spring Cloud Alibaba 版本选择说明以及整理归纳_乐之终曲的博客-CSDN博客_springcloudalibaba版本 然后将报错的地方将 .allowedOriginPatterns("*")改为 allowedOrigins("*") 。
👁️ 阅读量:0
© 版权声明:本文《credentials to a set of origins, list them explicitly or consider using “allowedOriginPatterns“》内容均为本站精心整理或网友自愿分享,如需转载请注明原文出处:https://www.zastudy.cn/wen/1686557324a291409.html。