This repository was archived by the owner on Dec 6, 2019. It is now read-only.

Description
I tried to take a screenshot of a page which loads some content asynchronously. A screenshot is taken but the asynchronously elements are not displayed. There was an error like "unsafe Javascript attempts from URL about:blank..." and "protocols, domains, ... must match". After downgrading the phantomjs module to 1.9.7-15 the error vanished but the screenshot remained the same. I also tried to adjust the casper settings within the runner.js and added under casper.create:
pageSettings: {
webSecurityEnabled: false
},
sslProtocol: 'any'
but that also didn't change a thing. So how could I enable CORS or get a workaround to capture the page as it would usually be (with the async content)?