Proxy is working, but not working, for ionic serve

This seems like it should be straight-forward enough. I don’t control the server-side implementation so I can’t just add the headers there. Am I overlooking something completely obvious or is there a bigger problem? Is there an example project somewhere that this actually works? My understanding is that the origin/referrer request headers should be cleared?


"proxies": [
      "path": "/api",
      "proxyUrl": ""


private apiUrl = '/api';

getApiVersion(): Observable<string> {
  return this.http.get(this.apiUrl)

“Proxy added” line in ionic serve log:

Console Error (also logged when using DevApp):

Network Request: