title: CORS with React, Webpack and Axios
body: <p>How to set up CORS Header in react front end app with webpack and axios.</p>
  
  <p>I want to get a response from an API url. Do I have to set up sepparate server with let's say express, or it can be done with webpack-dev-server from the front-end application.</p>
  
  <p>I get the error:</p>
  
  <pre><code>Failed to load https://api.test.io/test/res: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access.
  </code></pre>