iconic / grunt-svg-toolkit

A toolkit for working with, styling and converting SVG files.
MIT License
82 stars 10 forks source link

NETWORK_ERR: XMLHttpRequest Exception 101: A network error occurred in synchronous requests. #7

Open damien-murphy opened 6 years ago

damien-murphy commented 6 years ago

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
      }
    });
durgesh-kashyap1 commented 5 years ago

Thanks it work for me