When i just click on "I'm not a robot" button, only on iOS devices, i am getting this error:
"There's a connection problem has occured while trying to load the page"
Note that i double checked public site key.
Note that my connection is http, not https.
I also tried to automatically render the reCAPTCHA widget, nothing has changed.
Any ideas ?
html
<head>
<script type="text/javascript">
    $(document).ready(function(){
        $('#submit').hide();
    });
</script>
<script type="text/javascript">
    var verifyCallback = function(response) {
        $('#submit').show('slow');
    };
    var onloadCallback = function() {
    grecaptcha.render('html_element', {
          'sitekey' : 'mySiteKeyHere',
          'theme': 'dark',
          'callback': verifyCallback
        });
    };
</script>
</head>
<body>
<form action="message" method="post">
<div id="html_element" class="form-group input-group"></div>
    <div id="submit" class="form-group input-group">
        <button type="submit" class="btn btn-success"><span class="glyphicon glyphicon-send"></span> Send message</button>
    </div>
</form>
<script src="https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit"
    async defer>
</script>
</body>
Thanks in advance.
 
Aucun commentaire:
Enregistrer un commentaire