how to proxy to backend server on certain path? : <p>Here is the routes config:</p>

<pre><code>&lt;Route path='/' component={CoreLayout}&gt;
  &lt;IndexRoute component={HomeView}/&gt;
  &lt;Route path='/404' component={NotFoundView}/&gt;
  &lt;Redirect from='*' to='/404'/&gt;
&lt;/Route&gt;
</code></pre>

<p>Here is the proxy config for webpack-dev-server:</p>

<pre><code>proxy: {
  '/service': 'http://localhost:8080'
}
</code></pre>

<p>The express server listens on 3000 port.</p>

<p>I hope that all the requests send to <a href="http://localhost:3000/service" rel="noreferrer">http://localhost:3000/service</a> would be transferred to <a href="http://localhost:8080" rel="noreferrer">http://localhost:8080</a>, but it seems that react-router handles all the requests and the proxy does not work.</p>

<p>Any body knows how to fix this? Thank you in advance</p>
