In order to link to Node Red from other web servers, you’ll need to enable CORS, here is how to do that:
Edit /var/node-red/settings.js (assuming you’ve moved it here as described, otherwise you’ll need to “find / -name settings.js” to find the file.
Search the file and uncomment the following:
httpNodeCors: {
origin: "*",
methods: "GET,PUT,POST,DELETE"
},
Next, restart NodeRed, if it’s a service “systemctl restart nodered”.
[…] Enable cors-with-node-red […]
LikeLike