title: CORS issue with web API
body: <p>I am facing CORS issue in API. Getting following response:</p>
  
  <pre><code>&gt; {"$id":"1","Message":"The requested resource does not support http method 'OPTIONS'."}
  </code></pre>
  
  <p>Settings done in web.config to allow 'OPTIONS' method. But still not working. Below are my web.config settings.</p>
  
  <pre><code>`&lt;system.webServer&gt;
        &lt;httpProtocol&gt;
          &lt;customHeaders&gt;
            &lt;add name="Access-Control-Allow-Origin" value="*" /&gt;
            &lt;add name="Access-Control-Allow-Headers" value="Content-Type" /&gt;
            &lt;add name="Access-Control-Allow-Methods" value="GET,POST,PUT,DELETE,OPTIONS" /&gt;
           &lt;add name="Access-Control-Allow-Credentials" value="true" /&gt;
          &lt;/customHeaders&gt;
        &lt;/httpProtocol&gt;
   &lt;/system.webServer&gt;
  `
  </code></pre>