I have read many similar problems in StackOverflow, but the solutions doesn\'t work for me.
I have WCF REST service:
[]
Solution that worked for me:
Add this to web.config (server-side):
Create a Global.asax file (Global application class) and add the following code:
protected void Application_BeginRequest(object sender, EventArgs e){
if (Request.Headers.AllKeys.Contains("Origin") && Request.HttpMethod == "OPTIONS")
{
Response.Flush();
}
}