HttpErrorResponse occurs only in angular terminal output complaining about invalid credentials. But the app works without error in browser, and the http request returns 200. There are no errors in browser console, no errors under network tab as well. The api is using IIS authentication.
this.http.get(this.getUserUrl,
{
responseType: 'text',
withCredentials: true,
},
