title: axios response headers missing data when running in vuejs app
body: <p>I have simple vuejs application. In the main.js I have something like:</p>
  
  <pre><code>import Vue from "vue";
  import App from "./App.vue";
  import router from "./router/routes";
  import store from "./store/root";
  import vuetify from "./plugins/vuetify";
  import { RootActions } from "./constants";
  import axios from "axios";
  
  axios.get("https://api.github.com/users/mzabriskie").then(function(response) {
    console.log({ headers: response.headers });
  });
  </code></pre>
  
  <p>In the chrome console log I got these:</p>
  
  <p><a href="https://i.stack.imgur.com/jhSX8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jhSX8.png" alt="enter image description here"></a></p>
  
  <p>However in <a href="https://runkit.com/greenlaw110/5e92363de9be35001ab0481e" rel="nofollow noreferrer">https://runkit.com/greenlaw110/5e92363de9be35001ab0481e</a> with exactly the same code, I have much more headers printed out:</p>
  
  <p><a href="https://i.stack.imgur.com/5T4jx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5T4jx.png" alt="enter image description here"></a></p>
  
  <p>Question: </p>
  
  <ol>
  <li>Why there is such a big difference between axios running in vuejs and a pure nodejs environment?</li>
  <li>What I really want is to get the <code>Authorization</code> header of the response in my VueJs application, is this really doable in any way? (Note I have already put <code>Authorization</code> in the <code>Access-Control-Expose-Headers</code> of the response to preflight request</li>
  </ol>
  
  <p>Refer:</p>
  
  <ul>
  <li><a href="https://github.com/axios/axios/issues/606" rel="nofollow noreferrer">https://github.com/axios/axios/issues/606</a></li>
  <li><a href="https://github.com/axios/axios/issues/771" rel="nofollow noreferrer">https://github.com/axios/axios/issues/771</a></li>
  <li><a href="https://stackoverflow.com/questions/37897523/axios-get-access-to-response-header-fields">Axios get access to response header fields</a></li>
  </ul>