首页 > No 'Access-Control-Allow-Origin' header is present

No 'Access-Control-Allow-Origin' header is present

我的视频采用私有hls 播放,但是播放的时候就chrome总提示错误:
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://xxx.xxxx.com' is therefore not allowed access.

具体播放操作:
视频上传到一个点播的bucket(私有的),并用7牛的自动转成.ts 和.m3u8的视频资源。
然后根据官方提供的获取私有pm3u8连接给我的web播放器,但是chrome控制台报错了。

然后问了7牛的技术,他们说添加crossDomin.xml到我的bucket中,但是添加后依旧报上面错误。

注: 1、 .ts文件和m3u8文件在通一个bucket中。

2、 如果bucket为public的,是可以直接播放m3u8的。但是私有的有报错。

求解答一下。

【热门文章】
【热门文章】