title: Enable Cross-Origin Requests in ASP.NET Web API 2
body: <p>I wrote a Web API program It is run in local windows server and I tested it in other local windows server. But when I uploaded it in Plesk hosting, it does not work and I got this error:</p>
  
  <blockquote>
    <p>404 - File or directory not found.</p>
  </blockquote>
  
  <p>I set only one specific item in web.config</p>
  
  <pre><code> &lt;httpProtocol&gt;
    &lt;customHeaders&gt;
      &lt;add name="Access-Control-Allow-Origin" value="*" /&gt;
    &lt;/customHeaders&gt;
  &lt;/httpProtocol&gt;
  </code></pre>
  
  <p>my sample API address is <a href="http://syasat.com/HamshahriApiDemo/api/info" rel="nofollow noreferrer">Here</a>.</p>
  
  <p>Should I set a specific setting?</p>