Proxy not created in Angular 14

Viewed 244
{
    "/family-book-base/*": {
        "target": "http://localhost:8080",
        "secure": false,
        "logLevel": "debug"
    }
}

When I start my angular application using ng serve --proxy-config proxy.conf.json, it starts properly, but the proxy path is not created.

Note: Using the same proxy file with Angular 11 it's working fine.

1 Answers

Try this

the below is working fine for me in angular 14

"/Api/*": {
      "target": "http://localhost:8080",
      "secure": false,
      "changeOrigin": true,
      "xlogLevel": "debug",
      "pathRewrite": { "^/Api": "" }
    }
Related