title: Axios get access to response header fields
body: <p>I'm building a frontend app with React and Redux and I'm using <a href="https://github.com/mzabriskie/axios" rel="noreferrer">axios</a> to perform my requests. I would like to get access to all the fields in the header of the response. In my browser I can inspect the header and I can see that all the fields that I need are present(such as token, uid, etc...), but when I call</p>
  <pre><code>const request = axios.post(`${ROOT_URL}/auth/sign_in`, props);
  request.then((response)=&gt;{
    console.log(response.headers);
  });
  </code></pre>
  <p>I get just</p>
  <pre><code>Object {content-type: &quot;application/json; charset=utf-8&quot;, cache-control: &quot;max-age=0, private, must-revalidate&quot;}
  </code></pre>
  <p>Here my browser network tab,as you can see all the other fields are present.</p>
  <p><a href="https://i.stack.imgur.com/n43KO.png" rel="noreferrer"><img src="https://i.stack.imgur.com/n43KO.png" alt="enter image description here" /></a></p>
  <p>Bests.</p>