cavdailyonline / unicorn

CMS and front end app for student news publication
4 stars 5 forks source link

Add CORS configuration #44

Closed jnayak1 closed 8 years ago

jnayak1 commented 8 years ago

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.