Closed jochenvangasse closed 4 years ago
Enable Cors this will be enabled cors in agatha request response service to work.
Go to Global.asax.cs
protected void Application_BeginRequest(object sender, EventArgs e) { var context = HttpContext.Current; var response = context.Response;
// enable CORS
//response.AddHeader("Access-Control-Allow-Origin", "*");
response.AddHeader("Access-Control-Allow-Origin", "*");
response.AddHeader("X-Frame-Options", "ALLOW-FROM *");
if (context.Request.HttpMethod == "OPTIONS")
{
response.AddHeader("Access-Control-Request-Method", "POST,GET,PUT,DELETE,OPTIONS");
response.AddHeader("Access-Control-Allow-Headers", "Accept");
response.AddHeader("Access-Control-Allow-Headers", "Authorization,Origin,X-Requested-With,Content-Type");
response.AddHeader("Access-Control-Max-Age", "1728000");
response.End();
}
}
Added support for subtyping of BusinessException and SecurityException in RequestProcessingHandler.