我已经托管了由Adobe captivate在Amazon S3生成的html5视频。当我使用浏览器访问它的工作正常。无法访问来自交叉桶的内容(CORS ENABLED)
工作URL:http://lmtestforhtmlfive.s3.amazonaws.com/html5version/test/Hello%20World/story_html5.html
但是,当我用IFRAME上述工作的视频,在另一个HTML页面,它不工作。
错误: “不安全的JavaScript尝试访问来自帧的网址为http://temptesttobedelete.s3.amazonaws.com/html5test.html的帧,网址为http://lmtestforhtmlfive.s3.amazonaws.com/html5version/test/Hello%20World/story_html5.html。域,协议和端口必须匹配。
不工作的网址:http://temptesttobedelete.s3.amazonaws.com/html5test.html
经过几年的研究,我有需要在S3桶启用CORS,添加以下CORS配置上lmtestforhtmlfive桶。
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
<AllowedHeader>*</AllowedHeader>
<MaxAgeSeconds>3000</MaxAgeSeconds>
</CORSRule>
但我仍然无法访问iframe中的html5视频。
请建议我如何访问IFRAME中的html5视频。
感谢, Laxmilal Menaria