I am trying to get the location header in the response from an post like this:
this.httpClient.post<Response>(url, data, { observe: 'response'}).subscribe(response => {
const locationHeader = response.headers.get('Location');
});
But no headers are available. Inspecting the traffic in fiddler verifies that the headers are there in the response... Why are the Location header not appearing in the headers property in the httpclient?
Edit 1: Using azure functions emulator locally for backend api. My understanding is that this by default is supposed to allow all headers based on this: Configuring Access-Control-Allow-Headers in Azure Functions
Edit 2: Images from sample request with headers.