Created
June 6, 2024 17:12
-
-
Save erikhansen/6747b436dde92f4159f2a2c8ade529c4 to your computer and use it in GitHub Desktop.
Force ReCaptcha to be invalid before submitting a form—for testing purposes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.querySelectorAll("[name='g-recaptcha-response'], [name='token']").forEach(function(element) { | |
element.value = 'bad-recaptcha-token'; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment