Skip to main content

Hi guys
I have myproject v3 keys(pub and priv) and have myproject2 v3 keys(pub and priv)
The problem is that when the "grecaptcha.executed();" instruction is executed, in the case when myproject v3 keys are used, a check for a fire hydrant(etc) appears on page if reCAPTCHA has the slightest doubt, but in same case with using myproject2 v3 keys - the check does not appear when working from the same browser and from the same tab
Did according to docs

# head
<script src="https://www.google.com/recaptcha/api.js" async defer></script>

# body
<div class="g-recaptcha"
id="g-recaptcha"
data-sitekey="{myproject v3 pub key}"
data-size="invisible">

# js

function execCaptcha(){
try {
    grecaptcha.execute();
}
catch (e) {
    setTimeout(function (){
        execCaptcha();
    },2000);
}
}
 
execCaptcha();

Thanks!

Be the first to reply!

Reply