title: Cannot POST 404 error with Axios to Express server on Create React App
body: <p>I'm using node/express on the backend and react on the frontend.</p>
  <p>I'm testing a post request to 'http://localhost:8080/users/register' but on the client side I get a 404 error:</p>
  <pre><code>POST http://localhost:3000/ 404 (Not Found)
  </code></pre>
  <p>Postman post request (This works fine)</p>
  <pre><code>http://localhost:8080/users/register
  </code></pre>
  <p>I don't know why as I've set the proxy in my client side package.json file to point to my server port.</p>
  <p>Package.json which includes proxy</p>
  <pre><code>      &quot;browserslist&quot;: {
          &quot;production&quot;: [
            &quot;&gt;0.2%&quot;,
            &quot;not dead&quot;,
            &quot;not op_mini all&quot;
          ],
          &quot;development&quot;: [
            &quot;last 1 chrome version&quot;,
            &quot;last 1 firefox version&quot;,
            &quot;last 1 safari version&quot;
          ]
        },
        &quot;proxy&quot;: &quot;http://localhost:8080&quot;
      }
  </code></pre>
  <p>Axios POST request</p>
  <pre><code>import React from 'react';
  import axios from 'axios';
  
  function Register() {
      function onHandleRegisterSubmit() {
      axios.post('/users/register', {
      name: 'Joe',
      email: 'joe@msn.com'
    })
        .then((response) =&gt; {
          console.log(response);
        })
        .catch((error) =&gt; {
          console.log(error);
        });
      }
  </code></pre>