开发者社区 > 云存储 > 对象存储OSS > 正文

OSS跨域还是有问题

发送跨域请求时报Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'.错误 前端必须设置xhr.withCredentials = true;来实现传递cookie,所以有什么其他方法可以解决这个跨域报错吗?

展开
收起
游客ib2ucvecrumak 2022-11-25 16:45:01 361 0
1 条回答
写回答
取消 提交回答
  • 柳暗花明又一村

    解决了就好呀

    2022-11-27 23:45:29
    赞同 展开评论 打赏
问答分类:
问答标签:
相关产品:

相关产品

  • 对象存储
  • 相关电子书

    更多
    OSS运维进阶实战手册 立即下载
    《OSS运维基础实战手册》 立即下载
    OSS运维基础实战手册 立即下载