title: How is it possible to enable CORS from server-side?
body: <p>From my little experience in web API, same origin policy is a policy of browsers i.e, browser doesn't allow to make requests to other hosts rather than the origin.  I wonder how it is possible to enable CORS from server side(talking about ASP.net Web API)?</p>
  
  <p><strong>This is how i enable CORS in webAPI</strong></p>
  
  <pre><code>namespace WebService.Controllers
  {
      [EnableCors(origins: "*", headers: "*", methods: "*")]
      public class TestController : ApiController
      {
          // Controller methods ...
      }
  }
  </code></pre>
  
  <p>If CORS is a browser thing, isn't it more logical to enable it from client side. Can anybody clear this out</p>