title: .NET Web API CORS PreFlight Request
body: <p>I have some trouble make PUT and DELETE CORS request to Web API on other domain. </p>
  
  <p>I've coded API by tutorial <a href="http://www.asp.net/web-api/overview/security/enabling-cross-origin-requests-in-web-api#create-webapi-project" rel="noreferrer">http://www.asp.net/web-api/overview/security/enabling-cross-origin-requests-in-web-api#create-webapi-project</a>. </p>
  
  <p>GET and POST Requests works fine, but DELETE and PUT doesn't. I get this message:</p>
  
  <pre><code>Failed to load resource: the server responded with a status of 405 (Method Not Allowed)
  Failed to load resource: No 'Access-Control-Allow-Origin' header is present on the requested resource.
  </code></pre>
  
  <p>When I add code to WebConfig suggested on <a href="https://stackoverflow.com/questions/12521499/cors-support-for-put-and-delete-with-asp-net-web-api">CORS support for PUT and DELETE with ASP.NET Web API</a> , I get only first error.</p>
  
  <p>Can anyone help me with this please?</p>