I created a modal dialog to play youtube videos in. When the user clicks on a thumbnail image of the video it opens the dialog and injects the youtube iframe with this line of jQuery:
videoModal.html("<iframe class='youtube-player' id='youtube-player' type='text/html' width='640' height='385' src='http://www.youtube.com/embed/" + videoId + "?autoplay=1' frameborder='0'></iframe>");
I get the following error only in Chrome, all other browsers do not complain
Unsafe JavaScript attempt to access frame with URL http://myDomain/ from frame with URL http://www.youtube.com/embed/MyVideoID?autoplay=1. Domains, protocols and ports must match.
Any ideas? Should I be worried about this? Any help or advice is appreciated.