Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Is there a way to force the http client to send the auth header?
I'm hitting a server that requires it. I've satisfied the requirement by generating the header myself, but was just wondering if there should be an option on the component to do this.
jji
Yes, you can set the authorization header manually in the HTTP client request. For example, in JavaScript using the Fetch API:
fetch(url, {
headers: {
'Authorization': 'Bearer <your_token_here>'
}
})
In this example, the `Authorization` header is set to include a bearer token. You would replace `<your_token_here>` with the actual token you want to use for authentication.
Try once may be this will help you.
Yes, I'm send the token auth header after I get the JSON Web Token. But requesting the token requires Basic Auth, and it would be nice if there were an option in the tHttpResquest component to force the sending of the Basic Auth header on the first request.
jji