You can also fix the CORS origin request error by adding this code in Global.asax file.
protected void Application_BeginRequest(object sender, EventArgs e)
{
HttpContext.Current.Response.AddHeader("Access-Control-Allow-Origin", "https://www.google.co.in");
}