 <p>In the <code>WebApiConfig</code> class add the following:</p> <pre><code> public static void Register(HttpConfiguration config) { config.EnableCors(); config.MapHttpAttributeRoutes(); // Web API routes below } </code></pre>