开发者社区 问答 正文

oss页面访问报错

直接连接不上,帮我看看怎么样设置。
我要求在域名 http://ja1.h5.frpf.cn 和 http://ja.h5.frpf.cn 上直接能访问到oss上的ts文件

XMLHttpRequest cannot load https://ja12.oss-cn-shenzhen.aliyuncs.com/4.ts. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://ja1.h5.frpf.cn' is therefore not allowed access.

展开
收起
1204759436596566 2018-08-15 20:11:33 769 分享 版权
1 条回答
写回答
取消 提交回答
  • 将bucket权限要开启公共读权限,还需要将bucket绑定域名
    http://ja1.h5.frpf.cn/文件名
    这样访问
    2018-08-15 20:32:33
    赞同 展开评论