From f6dc5d0ad67bed44a827c3ca2c87a7f7c1b77bd5 Mon Sep 17 00:00:00 2001 From: Ethan Kaplan Date: Thu, 7 Nov 2024 07:47:12 -0800 Subject: [PATCH] MAT-4193 remove extra thing --- src/util/wafIntercept.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/wafIntercept.ts b/src/util/wafIntercept.ts index 8c199c7..ee6b6c4 100644 --- a/src/util/wafIntercept.ts +++ b/src/util/wafIntercept.ts @@ -3,7 +3,7 @@ import DOMPurify from "dompurify"; const wafIntercept = (error) => { // Check for WAF block if ( - (error?.response?.status === 403 || error?.response?.status === 200) && + error?.response?.status === 403 && error?.response?.headers["content-type"].includes("text/html") && (JSON.stringify(error.response.data).includes("soc@hcqis.org") || JSON.stringify(error.response.data).includes("QNET_SOC@CMS.HHS.GOV"))