Currently, I am utilizing http.post
to make a call to a .NET Core Web API.
One issue I am facing is the need to extract a specific header value from the HTTP response object - specifically, the bearer token. Is there a method that allows me to achieve this?
var user = this.http
.post<User>(this.loginUrl, body, { 'headers': headers })
.pipe(map(user => {
//processing user data logic goes here
return user;
}))