I am trying to access the headers in the response of a HttpClient post request (also Put request), but it shows undefined. It works perfectly with a get response though.
httpClient.post("url", {observe:"response"}). subscribe(response => { console.log(response.headers); // undefined
console.log(response.headers.get("header-name")); // error });