Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
The first implementation option for the article:
<script src="ВАШ_КЛЮЧ"></script>
grecaptcha.ready(function() {
grecaptcha.execute('ВАШ_КЛЮЧ', {action: 'homepage'}).then(function(token) {
let json = JSON.stringify({
token: token
let xhr = new XMLHttpRequest();'POST', '/functions/recaptcha.php', false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment