title: Enabling Cross Domain ASP.net Web API
body: <p>I have Microsoft Visual Studio Express 2013 for Web, Version 12.0.30501.00 Update 2. I have a solution with 2 project in it, one is a web api, and the second is an MVC project intended for for the views. I have create a simple web api returning httpresponsemessage and I can go in fiddler and I will see the json response. However in my second project when attempting to call  through ajax I received a cross domain error.</p>
  
  <p>The solution I try to follow is this <a href="http://www.asp.net/web-api/overview/security/enabling-cross-origin-requests-in-web-api">http://www.asp.net/web-api/overview/security/enabling-cross-origin-requests-in-web-api</a>. However when installing <code>Install-Package Microsoft.AspNet.WebApi.Cors -pre -project WebService</code> in the console manager I received an error so I used this line instead. <code>Install-Package Microsoft.AspNet.WebApi.Cors</code> then I try to the next step which is <code>config.EnableCors();</code> its state that </p>
  
  <pre><code>'System.Web.Http.HttpConfiguration' does not contain a definition for 'EnableCors' and no extension method 'EnableCors' accepting a first argument of type 'System.Web.Http.HttpConfiguration' could be found (are you missing a using directive or an assembly reference?)
  </code></pre>
  
  <p>I am not sure what to afterward, I also try to add <code>using System.Web.Http.Cors;</code> but state that the namespace does not exists. This visual studio was downloaded about 3 weeks ago, I feel this feature should not be hard to install as it fully supported, is there something that i am missing?</p>