Error generating reCaptcha

Asked

Viewed 106 times

1

I get an error message:

Uncaught Domexception: Blocked a frame with origin "https://www.google.com" from accessing a cross-origin frame. at :1:16

Code:

<html>

<body>

<script src='https://www.google.com/recaptcha/api.js?render=6LcJCIMUAAAAAKV8tUaI2FoVgmoGmksIH16hZmTW'></script>


<script>
grecaptcha.ready(function() {
grecaptcha.execute('6LcJCIMUAAAAAKV8tUaI2FoVgmoGmksIH16hZmTW', {action: 'action_name'})
.then(function(token) {
// Verify the token on the server.
});
});
</script>
</body>

</html>
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.