admin管理员组文章数量:1026989
在做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("*")
。
在做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("*")
。
本文标签: originssetcredentialsallowedOriginPatternsexplicitly
版权声明:本文标题:credentials to a set of origins, list them explicitly or consider using “allowedOriginPatterns“ 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/jiaocheng/1738333863a1562321.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论