title: Angular -> Web Api 2: "No 'Access-Control-Allow-Origin' header"
body: <p>Basically I'm trying to access my web api which is uploaded on Azure.</p>
  
  <p>I've added my CORS attribute to my WebApiConfig class:</p>
  
  <pre><code>public static void Register(HttpConfiguration config)
  {
      var cors = new EnableCorsAttribute("http://localhost:51407", "*", "*");
      config.EnableCors(cors);
  </code></pre>
  
  <p>However whenever I send an Ajax request (using angularJS) which rightfully contains</p>
  
  <pre><code>Origin: http://localhost:51407
  </code></pre>
  
  <p>I get the error:</p>
  
  <pre><code>No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:51407' is therefore not allowed access.
  </code></pre>
  
  <p>What could be the issue?</p>