title: How can I rewrite the path in a reverse proxy with Angular-CLI?
body: <p>I have set up the reverse proxy with the angular2 CLI like the following:</p>
  <pre><code>{
    &quot;/api/customer/*&quot;: {
      &quot;target&quot;: &quot;http://localhost:9010&quot;,
      &quot;secure&quot;: false
    }
  }
  </code></pre>
  <p>My problem is that the remote API is exposing a service on the path /customer, but the request that is sent by the reverse proxy is on /api/customer.</p>
  <p>Is there a way to remove the /api from the request that is sent by the reverse proxy? (Don't answer with &quot;just remove the /api from your http request&quot;, because I have an angular route on /customer).</p>