title: axios autohorization headers / CORS error
body: <p>I'm using react with axios to fetch some information. I'm sending JWT token to auth user and im geting response in console browser</p>
  <blockquote>
  <p>&quot;Access to XMLHttpRequest at 'https://beer-tonight.herokuapp.com/beer/getBeerStatus' from origin 'http://localhost:3000' has been blocked by CORS policy: Request header field authorization is not allowed by Access-Control-Allow-Headers in preflight response.&quot;</p>
  </blockquote>
  <p>This is my code:</p>
  <pre><code>componentWillMount(){
  
      let token = localStorage.getItem('token');
  
  
      axios.get('https://beer-tonight.herokuapp.com/beer/getBeerStatus', {headers: {Authorization : 'Bearer ' + token}}).then(
      result =&gt; {
          console.log('yey');
      });
  }
  </code></pre>
  <p>Error:</p>
  <p><a href="https://i.stack.imgur.com/LY5mG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LY5mG.png" alt="enter image description here" /></a></p>
  <p>When I am using POSTMAN I am getting proper answer.</p>
  <p>Postman input:</p>
  <p><a href="https://i.stack.imgur.com/GT18e.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GT18e.png" alt="enter image description here" /></a></p>
  <p>p.s. i already added :</p>
  <pre><code>app.use((req, res,next)=&gt;{
  res.setHeader('Access-Control-Allow-Origin', '*');
  res.setHeader('Access-Control-Allow-Methods', 'GET, POST, PATCH, DELETE');
  res.setHeader('Access-Control-Allow-Headers', 'Content-Type, Authorisation');
  next();
  </code></pre>