reCAPTCHA v3 - parameter "g-recaptcha-response" is null

1,096 views
Skip to first unread message

Gil

unread,
Jun 11, 2018, 8:18:05 AM6/11/18
to reCAPTCHA
Dear all

I'm trying to use recaptcha v3 in a JAVA project.

JSP

<script type="text/javascript" src="https://www.google.com/recaptcha/api.js?render=<reCAPTCHA_site_key>"></script>
...
<script>
grecaptcha.ready(function() {
grecaptcha.execute('<reCAPTCHA_site_key>')
.then(function(token) {
alert(token); -> the token is printed!
});
});
</script>
...

What is the best way to validate the token (server side) after the user submits the form?
In reCAPTCHA v2.0 the value of "g-recaptcha-response" are passed to website backend to validate the recaptcha.  

Thanks


Phelix Downs

unread,
Jun 18, 2018, 8:23:31 AM6/18/18
to reca...@googlegroups.com
The reCaptcha issue is very important and complex for the safety of information for potential users.  Thank you for the script clarification.  I will keep you posted once the issue is rectified. 

--
You received this message because you are subscribed to the Google Groups "reCAPTCHA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to recaptcha+...@googlegroups.com.
To post to this group, send email to reca...@googlegroups.com.
Visit this group at https://groups.google.com/group/recaptcha.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages