I am using IBM Bluemix to generate the Node-RED flow. Node-RED code act as the server and client call the Node-RED through API.
Client can call the Bluemix Node-RED server API via both HTTP and HTTPS methods. I need to disable the in-comming HTTP calls.
Is that available any methods to disable in-comming HTTP calls via bluemix.setting or etc.
I used the function node after the HTTP IN node. Checking headers to identify request is HTTP or HTTPS. If it is HTTP, then set the response headers like below.
msg.res.sendStatus(403).send('HTTP disabled') msg.res.sendStatus(403) msg.res.status(403)
in all the time i am getting
Deprecated call to msg.res.sendStatus
Deprecated call to msg.res.status
I would like to how to resolve this issue ?