get headers from get Http request in Angular
问题 I'm making a call to an API that gets blob data. back end sends to me also file name in header. My actual problem is that I can't get header from the api. Here's my service.ts public openFile(path) { let url='/download/'; let pathFile= new HttpParams().set('pathFile', path); return this.httpClient.get(url,{params:pathFile, responseType: 'blob' }); and in component.ts I call the service. when I try to print the res.headers I get undefined in console. openFile(path){ this.creditPoliciesService