I writing some scraping script on casperjs/phantomjs and trying to get html from one of goodle ads iframe tags and getting error
Code:
iframe_node = $('iframe').contents().find('iframe[name^="google_ads_frame"]')[0]
html = a.contentDocument.body.innerHTML
Error:
Uncaught DOMException: Failed to read the 'contentDocument' property from 'HTMLIFrameElement':
Blocked a frame with origin "http://example.com" from accessing a cross-origin frame.(…)