Problem with proxy and ionic 4

Hey I have started using ionic with version 4 beta and came up with a CROS issue where I want to access another API as my local one (where I have access to). So I read this article: https://ionicframework.com/docs/appflow/devapp/#cors and https://ionicframework.com/docs/cli/configuring.html#service-proxies. So after reading those I added this to my ionic.config.json:

  "proxies": [
    {
      "path": "/igdb",
      "proxyUrl": "https://api-v3.igdb.com"
    }
  ]

and then I modified my http post like this:

    this.http
      .post(
        'localhost:8100/igdb/search/',
        `search "${event.detail.value}"; fields game; limit 8;`,
        {
          headers: {
            'user-key': 'xxxxxxxxxxxxxx'
          }
        }
      )
      .subscribe(
        (response: any) => {
          console.log(response);
        },
        (error: any) => {
          console.log('(GamesSearchModal.searchGame) => ERROR:', error);
        }
      );

but this does not work. I get a message: "Http failure response for (unknown url): 0 Unknown Error" I know ionic 4 is in beta but is there something that is not yet added to the v4 docs that I have missed?

Hi,

did you come up with a solution? I am having the same issue.

Thanks!