diff --git a/api/challenge.go b/api/challenge.go index 5733c8d8a3..544d5e772e 100644 --- a/api/challenge.go +++ b/api/challenge.go @@ -21,7 +21,7 @@ const respChallengeHtml = ` } else { window.parent.postMessage("verificationFailed", "*"); } - }).cache(() => { + }).catch(() => { window.parent.postMessage("verificationFailed", "*"); }); } diff --git a/cloudflare/worker.js b/cloudflare/worker.js index 578baaec69..911b93f126 100644 --- a/cloudflare/worker.js +++ b/cloudflare/worker.js @@ -207,7 +207,7 @@ const challengeResponseBody = ` } else { window.parent.postMessage("verificationFailed", "*"); } - }).cache(() => { + }).catch(() => { window.parent.postMessage("verificationFailed", "*"); }); }