Open cgutierrez opened 8 years ago
Thank you! After 2 days spent tearing my hair out (phantomjs < v2 not compatible with OSX Sierra) I ended up here and you saved the day!
Hey, any chance to merge this ticket? Phantomjs v1.x has not been updated since 2014-01-25 so we had to switch to version 2 in most environments.
why does this not get merged?
This is not my fix.
This can be fixed by just passing '--web-security=no' to phantom.create() as the first param in init-phantomjs.js
https://github.com/iconic/grunt-svg-toolkit/blob/master/tasks/lib/init-phantomjs.js#L16
phantom.create('--web-security=no', function (ph) {
data.logger('New PhantomJS instance created.');
data.phantomjs = ph;
done(null, data);
}, {
dnodeOpts: {
weak: false
}
});
May or may not be of interest. I've updated the library to use the latest version of the Phantom API. This originally stemmed from receiving the following error:
The fix for this was to set the
--web-security=no
flag.