public object SkyLogError(string errorMsg) { HttpContext.Current.Response.AddHeader("Access-Control-Allow-Origin", "*"); //string referrer = Request.UrlReferrer(); string fErrorMsg = HttpContext.Current.Server.UrlDecode(errorMsg); if (bool.Parse(ConfigurationManager.AppSettings.Get("skyViewLoggingActivateSlack"))) { if (!string.IsNullOrWhiteSpace(fErrorMsg)) { SlackUtils.SendMsgToChannel(fErrorMsg, true); } } return(true); }