https://medium.com/codingthesmartway-com-blog/angular-4-3-httpclient-accessing-rest-web-services-with-angular-2305b8fd654b
for adding basic auth/ username password you need to add
header manually:
headers.append("Authorization", "Basic " + btoa("username:password"));
On Monday, February 4, 2019 at 8:41:26 PM UTC+5:30, Knight wrote:
>
> Hi,
> I meant the angular code or any reference you can suggest that i can see
> as an example on how to add headers to the request...
>
> On Thursday, January 31, 2019 at 12:44:04 PM UTC-5, Sander Elias wrote:
>>
>> Hi Knight,
>>
>> That's dictated by the server you are connecting to. So i can't really
>> answer your question.
>>
>> Regards
>> Sander
>>
>
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.