其他分享
首页 > 其他分享> > When allowCredentials is true, allowedOrigins cannot contain the special value "*"since th

When allowCredentials is true, allowedOrigins cannot contain the special value "*"since th

作者:互联网

当allowCredentials为true时,allowedOrigins不能包含特殊值“*”,因为无法在“Access Control Allow Origin”响应头上设置该值。

To allow credentials to a set of origins, list them explicitly or consider using "allowedOriginPatterns" instead.
要允许一组来源的凭证,请明确列出它们或考虑改用“allowedOriginPatterns”。

springboot升级,旧项目的跨域配置改用allowedOriginPatterns

标签:Control,Origin,set,allowCredentials,Access,cannot,allowedOriginPatterns,allowedO
来源: https://www.cnblogs.com/y6ming/p/14160409.html