# Need Guidline for Cloud Foundry Hosting,

**URL:** https://discourse.nodered.org/t/need-guidline-for-cloud-foundry-hosting/80474
**Category:** General
**Created:** [10 August 2023 18:09 UTC](https://discourse.nodered.org/t/need-guidline-for-cloud-foundry-hosting/80474 "2023-08-10T18:09:18Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Chandrakant](https://avatars.discourse-cdn.com/v4/letter/c/a698b9/32.png) [@Chandrakant](https://discourse.nodered.org/u/Chandrakant)
#### Post date: [10 August 2023 18:09 UTC](https://discourse.nodered.org/t/need-guidline-for-cloud-foundry-hosting/80474/1 "2023-08-10T18:09:18Z")

</div>

Trying hosting Node-Red in Cloud Foundry Environment, hosted sucessfully (using following guideline [GitHub - cloudfoundry-community/node-red-cf-ready: A visual tool for wiring the Internet of Things ready for any Cloud Foundry instance](https://github.com/cloudfoundry-community/node-red-cf-ready)),

however not able to save any flow, everytime getting this error

Error: [{"logref":"f28e8170ce964527ad18b617f8bed12a","message":"Gateway error: Invalid CSRF Token 'null' was found on the request parameter '\_csrf' or header 'X-XSRF-TOKEN'.","stackTrace":"Gateway error: Invalid CSRF Token 'null' was found on the request parameter '\_csrf' or header 'X-XSRF-TOKEN'."}]

please support me to resolve it

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [10 August 2023 22:09 UTC](https://discourse.nodered.org/t/need-guidline-for-cloud-foundry-hosting/80474/2 "2023-08-10T22:09:40Z")

</div>

Did you notice that repository was around 9 years old?

If you want to run node-red in the cloud, there are existing & more up to date solutions including, for example, [FlowForge](https://flowforge.com/).

You can simply sign-up or host it yourself or in a digital ocean droplet and even aws marketplace.

_Full disclosure- I work for FlowForge._

---

<div class="post-metadata">

### Author: ![Chandrakant](https://avatars.discourse-cdn.com/v4/letter/c/a698b9/32.png) [@Chandrakant](https://discourse.nodered.org/u/Chandrakant)
#### Post date: [11 August 2023 05:02 UTC](https://discourse.nodered.org/t/need-guidline-for-cloud-foundry-hosting/80474/3 "2023-08-11T05:02:59Z")

</div>

Thanks for Reply, however we have our own cloud environment and infra, we want to deploy node-red here

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [11 August 2023 05:53 UTC](https://discourse.nodered.org/t/need-guidline-for-cloud-foundry-hosting/80474/4 "2023-08-11T05:53:04Z")

</div>

Ok, well, as I said, FlowForge runs on your own infrastructure as well. The benefits and features you get out of the box (like teams, user management, snapshots etc) make running 1, 10 or more Node-RED instances a simple click of a button! A piece of cake. I'll leave it there.

Edit: and it is open source.

---

<div class="post-metadata">

### Author: ![gregorius](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gregorius/32/73816_2.png) [@gregorius](https://discourse.nodered.org/u/gregorius)
#### Post date: [11 August 2023 08:31 UTC](https://discourse.nodered.org/t/need-guidline-for-cloud-foundry-hosting/80474/5 "2023-08-11T08:31:05Z")

</div>

There is a repo for hosting Node-RED on Heroku - [GitHub - joeartsea/node-red-heroku: Node-RED in Heroku. Low-code programming for event-driven applications.](https://github.com/joeartsea/node-red-heroku) - I forked that and adapted to my needs.

Perhaps that can give you ideas on how to get it working in your cloud space.

---

<div class="post-metadata">

### Author: ![Chandrakant](https://avatars.discourse-cdn.com/v4/letter/c/a698b9/32.png) [@Chandrakant](https://discourse.nodered.org/u/Chandrakant)
#### Post date: [11 August 2023 18:16 UTC](https://discourse.nodered.org/t/need-guidline-for-cloud-foundry-hosting/80474/6 "2023-08-11T18:16:41Z")

</div>

tried Heroku edition as well, deployment sucessful, however same error

Error: [{"logref":"f28e8170ce964527ad18b617f8bed12a","message":"Gateway error: Invalid CSRF Token 'null' was found on the request parameter '\_csrf' or header 'X-XSRF-TOKEN'.","stackTrace":"Gateway error: Invalid CSRF Token 'null' was found on the request parameter '\_csrf' or header 'X-XSRF-TOKEN'."}]

---

<div class="post-metadata">

### Author: ![gregorius](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gregorius/32/73816_2.png) [@gregorius](https://discourse.nodered.org/u/gregorius)
#### Post date: [12 August 2023 08:06 UTC](https://discourse.nodered.org/t/need-guidline-for-cloud-foundry-hosting/80474/7 "2023-08-12T08:06:46Z")

</div>

What are you trying to execute on Node-RED? Have you got a copy of your flow?

---

<div class="post-metadata">

### Author: ![Chandrakant](https://avatars.discourse-cdn.com/v4/letter/c/a698b9/32.png) [@Chandrakant](https://discourse.nodered.org/u/Chandrakant)
#### Post date: [12 August 2023 10:40 UTC](https://discourse.nodered.org/t/need-guidline-for-cloud-foundry-hosting/80474/8 "2023-08-12T10:40:58Z")

</div>

i can't deploy any flow getting "X-XSRF-TOKEN" token missing message everytime

---

<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: [12 August 2023 11:14 UTC](https://discourse.nodered.org/t/need-guidline-for-cloud-foundry-hosting/80474/9 "2023-08-12T11:14:38Z")

</div>

I think this is a very specific Cloud Foundry issue. The error reads like the CF gateway is blocking the HTTP request from the editor because it is missing a required CSRF token. However, Node-RED doesn't know anything about Cloud Foundry or what CSRF tokens are needed to get through your gateway.

I don't think this is something we can help you with on the Node-RED side of things. I suggest investigating that error message in relation to Cloud Foundry and see if other people have hit it with other applications and what approaches they took to resolve it.

---

<div class="post-metadata">

### Author: ![Chandrakant](https://avatars.discourse-cdn.com/v4/letter/c/a698b9/32.png) [@Chandrakant](https://discourse.nodered.org/u/Chandrakant)
#### Post date: [14 August 2023 07:45 UTC](https://discourse.nodered.org/t/need-guidline-for-cloud-foundry-hosting/80474/10 "2023-08-14T07:45:01Z")

</div>

Yes it's cloud foundry related topic as mentioned in initial sibject, however i am looking for guidance where to fee additional code to generate CSRF token and use it for each post request inside node-red flow

---

<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: [13 October 2023 07:45 UTC](https://discourse.nodered.org/t/need-guidline-for-cloud-foundry-hosting/80474/11 "2023-10-13T07:45:19Z")

</div>

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