Q: I keep getting this message in my console:
Unsafe JacaScript attempt to access from with URL http://localhost:3000/resumes/1 from frame with URL http://player.vimeo.com/video/61229815. Domains, protocols and ports must match.
Also, the maxWidth method isn't working and sometimes it shows duplicates of the embeded video.
A: This is a bug in webkit which is used by Chrome and Safari. Basically the Vimeo is trying to access the parent window which is on a different domain. The same thing happens with you Youtube embeds, you can safely ignore this.
Here is the StackOverflow issue about the Youtube problem, http://stackoverflow.com/questions/13625239/embedding-youtube-video-using-iframe-gives-unsafe-javascript-attempt
If you are referring to the embedly-jquery lib on your other issues, here is some info:
Try maxwidth in the query attribute, see doc here: https://github.com/embedly/embedly-jquery#selector
The embedly-jquery lib doesn't de-dupe links, you would need to narrow your CSS selector to handle that.
Here is some more info on the bug: https://code.google.com/p/chromium/issues/detail?id=94618
0 Comments