Migrate
From reCAPTCHA
A script-tag swap and a new verify URL.
- Create a site and copy its keys.
- Replace Google's script with ours in compatibility mode. Your
grecaptchacalls and.g-recaptchaelements keep working, and the token arrives ing-recaptcha-responseas before:
<script src="https://api.example.com/v1/api.js?compat=recaptcha" async defer></script>- On the server, change the verify URL to
https://api.example.com/recaptcha/api/siteverifyand the secret to yours.
reCAPTCHA v3's grecaptcha.execute(sitekey, { action }) returns a token as before, and score means the same thing (1.0 is human).