title: axios post data as form data instead of as JSON in payload
body: <p>I am just trying my first reactJS app.</p>
  
  <p>In that I am using axios.post() method for sending data.</p>
  
  <pre><code>submitHandler = event =&gt; {
    event.preventDefault();
    axios
      .post("http://demo.com/api/v1/end-user/login", {
        username: "",
        password: "",
        user_type: 1
      })
      .then(res =&gt; {
        console.log(res);
        console.log(res.data);
      });
  }
  </code></pre>
  
  <p>But when I check into my network tab, data which I am sending along with request is seems to be in payload.</p>
  
  <p><a href="https://i.stack.imgur.com/8rIdr.png" rel="noreferrer"><img src="https://i.stack.imgur.com/8rIdr.png" alt="enter image description here"></a></p>
  
  <p>I would like to send the data as form data instead. Am I am missing something?</p>