I have a service that makes an http call to my backend:
exportSubs(param: Param): Observable {
return this.http.get(
`${e
You can specify that the data to be returned is not a JSON using the responseType. See the Requesting non JSON data
In your example, you should be able to use:
return this.http.get(
`${environment.apiBaseUrl}/blah`, { responseType: 'text' })
EDIT
You can set the responseType as blob,
return this.http.get(`${environment.apiBaseUrl}/blah`, { responseType: 'blob' });