tezvyn:

How do you configure Angular CLI dev server proxying?

Source: angular.devintermediate

Tests Angular CLI proxying to bypass CORS locally. Good answer: create proxy.conf.json with target and path, register it in angular.json serve options as proxyConfig, then restart ng serve.

Tests practical knowledge of Angular CLI development server proxy configuration to solve cross-origin issues without modifying the backend. A strong answer covers creating a proxy.conf.json file mapping URL patterns like /api to the backend target, registering it in angular.json under the serve target's proxyConfig option, and noting that ng serve must be restarted to pick up changes.

Read the original → angular.dev

Get five bites like this every day.

Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.

How do you configure Angular CLI dev server proxying? · Tezvyn