title: How to set headers with axios
body: <p>im trying to get information from an api football that I found.
  On postman it works well but i cannot set the headers properly with axios.</p>
  
  <p>here is my code : </p>
  
  <pre><code>class App extends React.Component {
    constructor(props) {
      super(props);
    }
  
    getTest = (e) =&gt; {
      e.preventDefault();
      let headers = {
        'Content-Type': 'application/json',
        'Access-Control-Allow-Origin': '*',
        'X-Auth-Token': '97e0d315477f435489cf04904c9d0e6co',
      };
  
      axios.get("https://api.football-data.org/v2/teams/90/matches?status=SCHEDULED", {headers})
        .then(res =&gt; {
          console.log("DATA")
        })
        .catch(res =&gt; {
          console.log("ERR", res);
        });
    }
  
      render() {
      return (
        &lt;div&gt;
          &lt;button onClick={this.getTest}&gt;info&lt;/button&gt;
        &lt;/div&gt;
      );
    }
  }
  </code></pre>
  
  <p>What is the problem ?
  Thx</p>