diff --git a/services/web/frontend/js/features/form-helpers/captcha.js b/services/web/frontend/js/features/form-helpers/captcha.js index ed7f362268..1cce6ead31 100644 --- a/services/web/frontend/js/features/form-helpers/captcha.js +++ b/services/web/frontend/js/features/form-helpers/captcha.js @@ -4,7 +4,14 @@ let recaptchaId const recaptchaCallbacks = [] export async function validateCaptchaV2() { - if (typeof grecaptcha === 'undefined') { + if ( + // Detect blocked recaptcha + typeof grecaptcha === 'undefined' || + // Detect stubbed recaptcha + typeof grecaptcha.render !== 'function' || + typeof grecaptcha.execute !== 'function' || + typeof grecaptcha.reset !== 'function' + ) { return } if (recaptchaId === undefined) {