title: Axios POST request not working when passed object
body: <p>I am trying to do a post request in a vue js app using axios to a local API and the response is returning empty data. The post request on API is working fine using Postman tool. Below is my code</p>
  
  <pre><code>var the_data = {
      title: 'This is title',
      description: 'this is description'
  }
  
  axios.post('/api/snippets/insert', the_data)
  .then(function (response) {
      console.log(response);
  })
  .catch(function (error) {
      console.log(error);
  });
  </code></pre>
  
  <p>On the API end, I am using a simple PHP script and printing whole $_POST request data using this code</p>
  
  <pre><code>var_dump($_POST);
  </code></pre>
  
  <p>But this is returning empty array.</p>