node-phantom icon indicating copy to clipboard operation
node-phantom copied to clipboard

window.location.hostname to window.location.host

Open amol9 opened this issue 8 years ago • 5 comments

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.

amol9 avatar Jul 20 '15 13:07 amol9

Life saver, +1

avegancafe avatar Aug 13 '15 21:08 avegancafe

Please accept this PR as it is a blocker. Not able to use the phantomjs module at all

pvsrivathsa avatar Oct 05 '15 10:10 pvsrivathsa

+1, can you merge, please?

TiagoJacobs avatar Oct 24 '15 01:10 TiagoJacobs

Is this going to be fixed soon?

stianl avatar Nov 09 '15 14:11 stianl

+1, version 2 doesn't work and version 1 has this issue..

khaledosman avatar Feb 04 '16 15:02 khaledosman