I am trying to pass headers in my get request using Angular 7. The headers is an Authorization token. I just tried to do the following
this.http.get('url', {Authorization: 'Basic xzeydyt=='});
I am now getting the following error
Argument of type '{ Authorization: string; }' is not assignable to parameter of type '{ headers?: HttpHeaders | { [header: string]