title: Enabling CORS in Web Api 2
body: <p>I have read through a lot of the stuff over enabling CORS in my web api.</p>
  
  <p>I installed the NuGet Package and added this line to my WebApiConfig.cs:</p>
  
  <pre><code>config.EnableCors(new EnableCorsAttribute("*", "*", "*"));
  </code></pre>
  
  <p>I can't actually compile my code though because it says it does not have a definition for <code>EnableCORS</code>.</p>
  
  <p>So... what is wrong?  (Yes, I did install the CORS package using this:</p>
  
  <pre><code>Install-Package Microsoft.AspNet.WebApi.Cors
  </code></pre>