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\

翻译如下:
在这里插入图片描述

解决办法:跨域配置报错,将.allowedOrigins替换成.allowedOriginPatterns即可。

转载请注明出处:

转载自http://lxfamn.cn/blog

未经允许不得转载:lxfamn » 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\

赞 (0) 打赏

置顶推荐

评论 0

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏