Property proxyConfig is not allowed. Angular

Viewed 1627

adding proxy to angular application

When I tried to add proxy config file to angular.json showing property is not allowed.

2 Answers

As it said. proxyConfig is not allowed inside build.options object. I think you meant to add it in serve.options. If there are no options then create one:

"serve": {
      "builder": "@angular-devkit/build-angular:dev-server",
      "options": {
        "proxyConfig": "src/proxy.conf.json"
      },
Related