Skip to content

Commit

Permalink
Merge pull request #107 from MeasureAuthoringTool/MAT-4193
Browse files Browse the repository at this point in the history
MAT-4193: change waf message check
  • Loading branch information
ethankaplan authored Nov 7, 2024
2 parents 57e08c4 + f6dc5d0 commit 2cb5be3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/util/wafIntercept.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ const wafIntercept = (error) => {
if (
error?.response?.status === 403 &&
error?.response?.headers["content-type"].includes("text/html") &&
JSON.stringify(error.response.data).includes("[email protected]")
(JSON.stringify(error.response.data).includes("[email protected]") ||
JSON.stringify(error.response.data).includes("[email protected]"))
) {
// eslint-disable-next-line no-console
console.log("WAF Interceptor Triggered");
Expand Down

0 comments on commit 2cb5be3

Please sign in to comment.