# Can't reach localhost in node-red with http request node

**URL:** <https://discourse.nodered.org/t/cant-reach-localhost-in-node-red-with-http-request-node/11632>\
**Category:** General\
**Created:** [28 May 2019 11:34 UTC](https://discourse.nodered.org/t/cant-reach-localhost-in-node-red-with-http-request-node/11632 "2019-05-28T11:34:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hathemi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hathemi/32/3792_2.png) [@hathemi](https://discourse.nodered.org/u/hathemi)\
**Post date:** [28 May 2019 11:34 UTC](https://discourse.nodered.org/t/cant-reach-localhost-in-node-red-with-http-request-node/11632/1 "2019-05-28T11:34:41Z")

</div>

i have a web services URLs that starts with [http://localhost:8001/clients](http://localhost:8001/clients). i have tried to put it in http request node but it always get statusCode: 401 ( unauthorised).  
but when i type in chrome [http://localhost:8001/clients](http://localhost:8001/clients) it works an get me the reponse body.  
Any help will be appreciated.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [28 May 2019 12:29 UTC](https://discourse.nodered.org/t/cant-reach-localhost-in-node-red-with-http-request-node/11632/2 "2019-05-28T12:29:44Z")

</div>

> [@hathemi](#):
>
> request node but it always get statusCode: 401 ( unauthorised).

What security have you got setup on the web service? Your browser may already have a valid cookie or caches session that allows it to access the url.

---

<div class="post-metadata">

**Author:** ![hathemi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hathemi/32/3792_2.png) [@hathemi](https://discourse.nodered.org/u/hathemi)\
**Post date:** [28 May 2019 13:10 UTC](https://discourse.nodered.org/t/cant-reach-localhost-in-node-red-with-http-request-node/11632/3 "2019-05-28T13:10:50Z")

</div>

> [@knolleary](#):
>
> security have you got setup on the web service?

WS is configured for Windows credential type, i think that's why it only works on chrome..
