title: Reactjs - Axios - Nexmo POST request not working (No 'Access-Control-Allow-Origin' )
body: <p>I'm using Reactjs and I'm trying to do a POST request with Axios to send a SMS with Nexmo. I can receive the SMS but I have this error on the console <strong>No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '<a href="http://localhost:3000" rel="nofollow noreferrer">http://localhost:3000</a>' is therefore not allowed access</strong>.
  Here's my code :</p>
  
  <pre><code>axios({
    method : 'post',
    url : 'https://rest.nexmo.com/sms/json',
    params:{
      api_key:'xxxxxxxxx',
      api_secret:'xxxxxxxxx',
      to:phoneNumber,
      from:'NEXMO',
      text:"New message"
    },
    headers:{
        'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
  .then(function (response) {
    console.log(response);
  })
  .catch(function (error) {
    console.log(error);
  });
  </code></pre>
  
  <p>How can I fix this issue ? Thx</p>