I have read many similar problems in StackOverflow, but the solutions doesn\'t work for me.
I have WCF REST service:
[]
I want to show what work for me.
First you must enable CORS on web.config
(like Mihai sad):
If you have some extra HEADER parameter, you must add it to Access-Control-Allow-Headers, like:
And finally, to handle OPTIONS requests you must reply with empty response, adding in your application class:
protected void Application_BeginRequest()
{
if (Request.Headers.AllKeys.Contains("Origin") && Request.HttpMethod == "OPTIONS")
{
Response.Flush();
}
}