I'm using the node-phantom npm module, and whenever I do a super simple test like
phantom=require('node-phantom');
var phantom=require('node-phantom');
phantom.create(function(err,ph) {
console.log("testing");
ph.exit();
});
It prints the following error:
phantom stdout: console msg:XMLHttpRequest cannot load http://127.0.0.1/socket.io/?EIO=3&transport=polling&t=1439501157936-0. Origin http://127.0.0.1:60689 is not allowed by Access-Control-Allow-Origin.
Anyone know what the cause of this could be?
package.json:
{
"name": "test",
"version": "0.0.1",
"devDependencies": {
"grunt": "^0.4.5",
"grunt-contrib-clean": "^0.6.0",
"grunt-contrib-watch": "^0.6.1",
"grunt-exec": "^0.4.6",
"mocha": "^2.2.5",
"node-phantom": "^0.2.5",
"phantom": "^0.7.2",
"phantomjs": "^1.9.18",
}
}
(there are multiple versions of phantom because I've been trying some out)
npm test?node test.js(my file is calledtest.js). Not trying to tie in with a test suite right now, literally just trying to get my environment set up and nothing is working.