Send password and username from UI Dashboard to http request

Hi everyone, I have a question. I have a NodeRED flow that goes to a website via http request and does different things there. This website requires login data (username and password). So far I have entered the login data directly in HTTP request node (see picture)

I want to send the login data via UI Dashboard to the HTTP request and save it there until the user logs out again. For example

I worked with msg.headers but it didn't work or maybe I didn't use it properly. can someone please help me or can someone give me an example?

You can set headers in the http request node or feed headers in
headers.Authorization = "Basic user:pass". user:pass must be base64encoded.

Based on the title of your post, are you simply trying to pre-populate the request node with your credentials send from the ui widget? Or are you having trouble with the http request itself?

Sorry for not understanding, but it is not obvious what you are trying to accomplish.

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