其他分享
首页 > 其他分享> > SpringBoot跨域问题:When allowCredentials is true, allowedOrigins cannot contain the special value “*“sin

SpringBoot跨域问题:When allowCredentials is true, allowedOrigins cannot contain the special value “*“sin

作者:互联网

意思是:当allowCredentials为true时,allowingOrigins不能包含特殊值“ *”,因为无法在“ Access-Control-Allow-Origin”响应标头上设置。要允许凭据具有一组来源,请明确列出它们或考虑改用“ allowedOriginPatterns”。

解决:将allowingOrigins换成allowedOriginPatterns即可。

标签:SpringBoot,When,value,allowCredentials,Access,true,allowedOriginPatterns,allowin
来源: https://blog.csdn.net/weixin_40689677/article/details/114443185