title: How to set proxy when using axios to send requests?
body: <p>I am using a package called 'concurrently' to run my client and server at the same time on localhost. Client runs on port 3000 while server runs on port 5000. I have set proxy in the package.json of server in the following manner:</p>
  
  <pre><code>"proxy": "https://localhost:5000"
  </code></pre>
  
  <p>But when I make a request from client in the following manner:</p>
  
  <pre><code>    const config = {
          headers: {
            'Content-Type': 'application/json'
          }
        };
  
      const res = await axios.post('/api/users', body, config);
  </code></pre>
  
  <p>It says: <code>POST http://localhost:3000/api/users 404 (Not Found)</code>. I don't understand why but despite setting proxy, axios keeps making request to port 3000 instead of port 5000. What is the issue? </p>