I have hosted a html5 video generated by Adobe captivate at Amazon S3. When I access using browser its working fine.
Working url : http://lmtestforhtmlfive.s3.amazonaws.com/html5version/test/Hello%20World/story_html5.html
But when I use the above working video in IFRAME at another html page, its not working.
Error : "Unsafe JavaScript attempt to access frame with URL http://temptesttobedelete.s3.amazonaws.com/html5test.html from frame with URL http://lmtestforhtmlfive.s3.amazonaws.com/html5version/test/Hello%20World/story_html5.html. Domains, protocols and ports must match."
Not working URL : http://temptesttobedelete.s3.amazonaws.com/html5test.html
After few research I got need to enable CORS on S3 bucket, added below CORS configuration on lmtestforhtmlfive bucket.
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
<AllowedHeader>*</AllowedHeader>
<MaxAgeSeconds>3000</MaxAgeSeconds>
</CORSRule>
But still I am not able to access the html5 video in iframe.
Please suggest me how to access html5 videos in IFRAME.
Thanks, Laxmilal Menaria