node-phantom
node-phantom copied to clipboard
window.location.hostname to window.location.host
Changed window.location.hostname to window.location.host so that port number is included in the url.
Fixes the following type of error:
phantom stdout: console msg:XMLHttpRequest cannot load http://127.0.0.1/socket.io/?EIO=3&>transport=polling&t=1437374191861-0. Origin http://127.0.0.1:44550 is not allowed by Access-Control-Allow-Origin.
Life saver, +1
Please accept this PR as it is a blocker. Not able to use the phantomjs
module at all
+1, can you merge, please?
Is this going to be fixed soon?
+1, version 2 doesn't work and version 1 has this issue..