原文:SpringBoot跨域问题:When allowCredentials is true, allowedOrigins cannot contain the special value "*"since that cannot be set on the "Access-Control-Allow-Origin"

意思是:当allowCredentials为true时,allowingOrigins不能包含特殊值 ,因为无法在 Access Control Allow Origin 响应标头上设置。要允许凭据具有一组来源,请明确列出它们或考虑改用 allowedOriginPatterns 。 解决:将allowingOrigins换成allowedOriginPatterns即可。 修改前: 修改后: ...

2021-01-16 10:59 0 3779 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2026 CODEPRJ.COM