The same origin policy prevents browsers from displaying requests made to other origins, unless there is an Access-Control-Allow-Origin header in the response of that request. In order for our angular app to make requests to our django api, we need to make sure we have this Access-Control-Allow-Origin header in all the responses from our api, specifying that a page from the angular app is allowed to make requests to the django api.
The same origin policy prevents browsers from displaying requests made to other origins, unless there is an
Access-Control-Allow-Origin
header in the response of that request. In order for our angular app to make requests to our django api, we need to make sure we have thisAccess-Control-Allow-Origin
header in all the responses from our api, specifying that a page from the angular app is allowed to make requests to the django api.