title: React can't talk to node ERR_CONNECTION_REFUSED
body: <p>I am trying to create a React / Node app. </p>
  
  <p>Inside a React component I am trying to populate a component using:</p>
  
  <pre><code>await axios.get('//localhost:8081/')).data;
  </code></pre>
  
  <p>Node is running and netstat shows it is listening on 8081, additionally when I test using curl, the data is returned:</p>
  
  <pre><code>curl http://localhost:8081/
  [{"id":1,"data":"test"}]
  </code></pre>
  
  <p>However in the browser console I see:</p>
  
  <pre><code>GET http://localhost:8081/ net::ERR_CONNECTION_REFUSED
  </code></pre>