I ran into an issue in which I could not get the value in my response header from a cross origin request. I figured out the answer, which was to configure my server to expose the header i needed (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Expose-Headers).
My question is why do I need to do that in order to have access to it in scripts, if I can actually see the value in the response in the network tab?