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:460) Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException: Error has been observed at the following site(s): |_ checkpoint ⇢ org.springframework.cloud.gateway.filter.WeightCalculatorWebFilter [DefaultWebFilterChain][from www.fhadmin.cn]
问题原因,新版本的gateway 取消了allowedOrigins, 对应的变更为 allowedOriginPatterns
配置修改为:
#--------gateway配置---fhadmin.cn-----#使用服务发现路由spring.cloud.gateway.discovery.locator.enabled=true#服务路由名小写spring.cloud.gateway.discovery.locator.lower-case-service-id=true#跨域配置(java www.fhadmin.org)spring.cloud.gateway.globalcors.corsConfigurations.[/**].allowedOriginPatterns=*spring.cloud.gateway.globalcors.corsConfigurations.[/**].allowedHeaders=*spring.cloud.gateway.globalcors.corsConfigurations.[/**].allowedMethods=*spring.cloud.gateway.globalcors.corsConfigurations.[/**].allowCredentials=true
工作流模块------------------www.fhadmin.cn-------------
1.模型管理 :web在线流程设计器、导......
原文转载:http://www.shaoqun.com/a/862435.html
跨境电商:https://www.ikjzd.com/
邮乐网:https://www.ikjzd.com/w/1776
gtin:https://www.ikjzd.com/w/136
askme:https://www.ikjzd.com/w/2459
java.lang.IllegalArgumentException:WhenallowCredentialsistrue,allowedOriginscannotcontainthespecialvalue"*"sincethatcannotbesetonthe"Access-Control-Allow-Origin"responseheader.Toal
sca:https://www.ikjzd.com/w/2424
中东电商市场见解:https://www.ikjzd.com/articles/133413
亚马逊斥资28亿美元新建AWS云服务区域:https://www.ikjzd.com/articles/133412
针对Google如何通过竞争对手去挖掘关键词?:https://www.ikjzd.com/articles/133421
B2B企业如何在俄罗斯电商市场中自建搜索广告?:https://www.ikjzd.com/articles/133420
酒吧被陌生人带去卫生间啪到腿软 被陌生人做站不起来:http://lady.shaoqun.com/a/247291.html
男生㖭我大腿中间的东西 拨开我的内裤坐了下来:http://lady.shaoqun.com/m/a/248372.html
老师腿张开让我狂吻 老师抬起臀部让我进去:http://lady.shaoqun.com/m/a/247566.html
合住一个房间的正常频率是多少?不同的年龄有合适的时间:http://lady.shaoqun.com/a/413007.html
回到家乡,我记得112:只为爱而唠叨:http://lady.shaoqun.com/a/413008.html
为什么孕中期女性合住一个房间更容易高潮?:http://lady.shaoqun.com/a/413009.html
"睡400个女生同时和17个女朋友约会":不要和渣男谈人性:http://lady.shaoqun.com/a/413010.html
没有评论:
发表评论