I am trying very simple angular 5 http 'GET' request. When i check chrome developer tools, i couldn't see http headers.
import { HttpClient, HttpHeaders } from '@angular/common/http';
// ...
const headers = new HttpHeaders(
{
'Authorization': 'Basic ' + btoa(user.username + ':' + user.password)
}
);
this.http.get('xyz-url', { headers }).subscribe((data: any) => {
// do something
});
