title: how to allow django rest api to response requests made from different hosts?
body: <p>i developed a web api using djangorestframework but when i am consuming api using angularJS, browser shows error</p>
  
  <blockquote>
    <p>XMLHttpRequest cannot load <a href="http://127.0.0.1:8000/webapi/orders" rel="nofollow noreferrer">http://127.0.0.1:8000/webapi/orders</a>. Response > to preflight request doesn't pass access control check: No 'Access-
    Control-Allow-Origin' header is present on the requested resource. Origin > '<a href="http://127.0.0.1:37749" rel="nofollow noreferrer">http://127.0.0.1:37749</a>' is therefore not allowed access.</p>
  </blockquote>
  
  <ul>
  <li>angularJS app is hosted on 127.0.0.1:37749/ and</li>
  <li>django api is hosted on 127.0.0.1:8000/</li>
  </ul>
  
  <p>how to configure settings.py to solve this problem?
  please help!!!</p>