我已經託管了由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