Hi guys,
Looking for something to elaborate a ui for a project a came into a problem in using “dynamically change config parameter of a node”. The problem happens with the http request and even if there are several discussion on the topic, I’ve been not able to find a solution.
As per dynamically change config parameter of a node, this is my flow
When I click the inject node, node-red reply with
If I click Review Change I obtain this
Then Review Changes again
As you can see, it reports that something has changed: the port field has increased. Pushing on merge button and open again node settings I can see the change.
(previously was 108) So I can now deploy as node red require.
Otherwise, if at the first step I click on Ignore, no deploy is required by node red but the change is not shown in the node settings until the next refresh of the browser page. No need to deploy. Pretty acceptable for my purpose.
By thinking to do this kind of changes from ui, I think an aspects need to be faced.
How can I can let http request have access to flow if authentication is enabled?
What it happens is that, when authentication (admin and password) is required to have access to node red, even if I use for http request “basic authentication” Type with correct user and password, the flow is able to access only to html source page but not to the flow itself and result is as per following image.
Just a try with Digest Type give me “bad request” as payload.
Does anyone have a suggestion?