Updated: 03 September 2023

Enale Cors for Node-RED

In order to enable Cross Origin for Node-RED we need to add the httpNodeCors option into the bluemix-settings.js file in the settings object

1
var settings = module.exports = {
2
...
3
httpNodeCors: { origin: "*", methods: ["GET","PUT","POST","DELETE"] },
4
...
5
}

We can access our application by either pulling it and re-pushing, or alternatively by creating a DevOps toolchain around that