fetch api not returning the Location header
By default the only headers you’ll be able to get to in your JavaScript from a fetch response are:
Cache-Control
Content-Language
Content-Type
Expires
Last-Modified
Pragma
To expose others, send a Access-Control-Expose-Headers
response header, with the value either being an explicit list of just the headers you want to expose, or *
to expose them all.