title: How to enable cross-origin request in web api 2
body: <p>I know its not a big issue to resolve ,But i am facing problem to consume web api in asp.net MVC web api.</p>
  
  <p>I am getting below error:
  "XMLHttpRequest cannot load <a href="http://192.168.1.71:800/api/IzoGlass/ToolLocationData" rel="nofollow">http://192.168.1.71:800/api/IzoGlass/ToolLocationData</a>. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '<a href="http://localhost:58469" rel="nofollow">http://localhost:58469</a>' is therefore not allowed access".</p>
  
  <p>I've searched and find solution but not working fine with my application.</p>
  
  <p>Description :-When i am consuming web api from same domain in my application its working fine.</p>
  
  <p>but whenever i am consuming webapi from other domain its throwing error. given above.</p>