Dev Server Proxy

noun

say it: “DEV SER-ver PROK-see” /dɛv ˈsɜːrvər ˈprɒksi/

A setting that makes the Angular dev server pass /api requests on to the real API.

What is Dev Server Proxy in Angular?

Dev Server Proxy — A setting for ng serve that passes every request starting with /api on to your Web API on another port. The browser only ever talks to the Angular dev server, so there's no cross-origin problem while you develop.

{
  "/api": { "target": "http://localhost:5000", "secure": false }
}

In a sentence

  • “With the dev server proxy, the app calls /api/products and ng serve passes it to port 5000.”

Level: Journeyman · More Angular terms at this level

Updated