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

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

解决:将allowingOrigins换成allowedOriginPatterns即可。

上一篇:springboot项目跨域问题解决


下一篇:IllegalArgumentException: When allowCredentials is true, allowedOrigins cannot contain the special v