I make a post request to a server which responds with two headers that are important for the client: username and access-token. The Network Tab of the Chrome debug tool disp
Just want to give additional info. Yesterday spent on this few hours and was getting crazy.
Once you have access-control-expose-headers
from backend. And if you just printing response object like this console.log(res)
or console.log(res.headers)
it will not show the headers because Angular uses Lazy-loading. You need to explicitly say which header you need console.log(res.headers.get('your-header'))