# httpNodeCors setting issue

**URL:** <https://discourse.nodered.org/t/httpnodecors-setting-issue/31197>\
**Category:** General\
**Created:** [5 August 2020 21:24 UTC](https://discourse.nodered.org/t/httpnodecors-setting-issue/31197 "2020-08-05T21:24:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cgesbocker](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cgesbocker/32/26907_2.png) [@cgesbocker](https://discourse.nodered.org/u/cgesbocker)\
**Post date:** [5 August 2020 21:24 UTC](https://discourse.nodered.org/t/httpnodecors-setting-issue/31197/1 "2020-08-05T21:24:32Z")

</div>

I am using the following setting in my runtime settings file

httpNodeCors: {  
origin: '[http://localhost:8080](http://localhost:8080)',  
methods: "POST",  
credentials: true,  
}

However, from the frontend when I request the get the data at the node-red endpoint using withCredentials: true, with origin of [http://localhost:8080](http://localhost:8080)

The frontend says that the request was blocked because the preflight responded with Access-Control-Allow-Origin: \*

Does anyone have any ideas on why this is happening? Its like this setting isn't being set or is being overriden

Sorry I cannot provide code to reproduce, thanks in advance.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [4 October 2020 21:24 UTC](https://discourse.nodered.org/t/httpnodecors-setting-issue/31197/2 "2020-10-04T21:24:47Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
