iframe-messenger icon indicating copy to clipboard operation
iframe-messenger copied to clipboard

Do not access cross-origin parent window

Open mchv opened this issue 9 years ago • 0 comments

The code seems to try to access parent window property:

var height = parseInt(document.body.offsetHeight, 10);

For instance on this article, it result an error message in the console:

iframeMessenger.js:157 Blocked a frame with origin "https://interactive.guim.co.uk" from accessing a frame with origin "https://www.theguardian.com". Protocols, domains, and ports must match. 

mchv avatar Jun 23 '16 15:06 mchv