I am trying to get logo image(any type image, example: jpeg, png, gif) from API I can see image in Network tab but console throws an error as shown in attached image. Any suggestions? I am using htppclient.get and .toPromise() to and Angular latest version.
edit: I also have this header set
const headers = new HttpHeaders().set('Content-Type', 'application/json');
return this.getHeaders().append('responseType', 'text');
