private void OnPreSendRequestContent(object sender, EventArgs e) { StreamCapture filter = App.Response.Filter as StreamCapture; HttpResponseBody = filter.StreamContent; XSSAudit.CheckXSS(App, HttpResponseBody); }
private void OnPreSendRequestContent(object sender, EventArgs e) { if (HttpContext.Current.Response.StatusCode != 502 && HttpContext.Current.Response.StatusCode != 404) // 暫定対応 { StreamCapture filter = App.Response.Filter as StreamCapture; HttpResponseBody = filter.StreamContent; XSSAudit.CheckXSS(App, HttpResponseBody); } }