title: webpack-dev-server and express on the same port?
body: <p>I have cross domain issues in development environment with webpack-dev-server running on port 8080 while express backend running on port 5000.</p>
  
  <ol>
  <li>Backend api method calls through AJAX raise CORS errors</li>
  <li>Clicking on link that points to backend api does not pass session data</li>
  </ol>
  
  <p>These problems are solvable, but I wonder why bother if they are not going to happen in production (where both client and backend will use same port)</p>
  
  <p>Can this problem be solved (e.g. by running dev server and express on the same port or any other way?)</p>