Youtube Embed Origin Error

Youtube Embed Origin Error

BY 08 Jan 2017 Web Application Development
<iframe width="560" height="315" src="https://www.youtube.com/embed/i-p9lWIhcLQ?list=PL7atuZxmT954bCkC062rKwXTvJtcqFB8i" frameborder="0" allowfullscreen></iframe>

Embedding a simple YouTube iFrame into my hybrid app and I’m getting this error.

Blocked a frame with origin "https://www.youtube.com" from accessing a frame with origin "file://". The frame requesting access has a protocol of "https", the frame being accessed has a protocol of "file". Protocols must match.

Tizen browser for web app is blocking frame because of different origin. file:// vs https://.

Is there anyway to succesfully embed iFrames into the web app without causing this to happen?

 

 

 

Written by