0

Is there any way to call a server active on a port on localhost from developer console on chrome/firefox/safari? I'd like to run a script in the developer console while contacting a server on localhost.

Ferus
  • 1,080
  • 3
  • 12
  • 17
  • So do you want to open `siteA:portA` and send a request to `siteB:portB` from opened console on `siteA`, correct? – extempl Oct 28 '18 at 04:36
  • @extempl Not just siteB but localhost. When I tried to do localhost it instead send a request to siteA. – Ferus Oct 28 '18 at 04:40
  • I see, so you definitely need the different port. Then you should consider creating the local server which will route different domains to different ports, so then you'll be able to do requests between them, as ajax implementation won't let you do cross-port requests – extempl Oct 28 '18 at 04:43
  • See the related question: https://stackoverflow.com/questions/2099728/how-do-i-send-an-ajax-request-on-a-different-port-with-jquery – extempl Oct 28 '18 at 04:44
  • @extempl Ok thanks. – Ferus Oct 28 '18 at 05:12

0 Answers0