adding headers to httpclient angular

Solutions on MaxInterview for adding headers to httpclient angular by the best coders in the world

showing results for - "adding headers to httpclient angular"
Micaela
28 Nov 2016
1import { HttpHeaders } from '@angular/common/http';
2
3...
4this.http.post<any>(BACKEND_URL, postData, 
5        {headers: new HttpHeaders({your-headers})})
6      .subscribe(responseData => {
7        ...
8      });