# Configure a proxy for your API calls with Angular CLI

DevFeed: [Configure a proxy for your API calls with Angular CLI](<https://devfeed.tech/articles/configure-a-proxy-for-your-api-calls-with-angular-cli-21301.md>)

Original publisher: [Read original article](<https://juri.dev/blog/2016/11/configure-proxy-api-angular-cli/>)

Published: 2016-11-06T00:00:00Z

Content type: tutorial

Language: en

Sources: [Juri Strumpflohner](<https://devfeed.tech/sources/juri-strumpflohner.md>)

Topics: [Angular CLI](<https://devfeed.tech/topics/angular-cli.md>), [Angular](<https://devfeed.tech/topics/angular.md>), [REST API](<https://devfeed.tech/topics/rest-api.md>), [API](<https://devfeed.tech/topics/api.md>)

Tags: [ajax](<https://devfeed.tech/tags/ajax.md>), [angular](<https://devfeed.tech/tags/angular.md>), [api](<https://devfeed.tech/tags/api.md>), [backend](<https://devfeed.tech/tags/backend.md>), [cli](<https://devfeed.tech/tags/cli.md>), [configure](<https://devfeed.tech/tags/configure.md>), [cors](<https://devfeed.tech/tags/cors.md>), [frontend](<https://devfeed.tech/tags/frontend.md>), [http](<https://devfeed.tech/tags/http.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [proxy](<https://devfeed.tech/tags/proxy.md>), [rest](<https://devfeed.tech/tags/rest.md>), [rest-api](<https://devfeed.tech/tags/rest-api.md>)

## AI overview

The Angular CLI development server can proxy API requests to a backend running on another port or host. This lets a classic app make requests through the frontend's origin, avoiding the need to hard-code the backend's full URL in each call and addressing the CORS issue described in the excerpt. The source distinguishes this approach from adding CORS headers, which it says is necessary for a generic API whose consumers are unknown. The excerpt cuts off while explaining how the proxy handles requests, so it does not provide setup steps or configuration syntax.

## Source excerpt

Lorem ipsum dolor sit amet