I'm attempting to fetch a logo image (such as jpeg, png, gif) from an API. While I can see the image in the Network tab, the console is throwing an error, which is displayed in the attached image. Any ideas on how to resolve this? I am using htppclient.get and .toPromise() in the latest version of Angular.
edit: I have also set this header:
const headers = new HttpHeaders().set('Content-Type', 'application/json');
return this.getHeaders().append('responseType', 'text');