Postman can't reach localhost

后端 未结 19 1944
Happy的楠姐
Happy的楠姐 2020-12-23 16:34

I am in a corporate env so I have to use a proxy to reach servers. This works well in postman and in browsers. What I can\'t reach is localhost in postman but I can reach lo

19条回答
  •  春和景丽
    2020-12-23 17:03

    I found a temporary solution:

    In terminal, go to the directory where postman is installed and add:

    machine@dev:~/Documents/Postman$ export NO_PROXY=localhost,127.0.0.1
    machine@dev:~/Documents/Postman$ ./Postman 
    

    This will make calls to localhost work.

    I found a similar problem on Windows machines here

提交回复
热议问题