this is angular code to retrieve token in console
return this.http.post(this.loginUrl, bodystr, this._requestOption)
.subscribe(response => {
if(response.headers.has("authorization"))
{
let token = response.headers.get("authorization");
console.log(token);
}
console.log("cookie: " + response.headers.get("Access-Control-Expose-Headers: authorization"));
console.log(response.headers.get("Authorization"));
console.log(response);
return response;
}, err => {
throw err;
});
}
and i am unable to access the token from the header.
