Uncaught DOMException: Blocked a frame with origin "https://www.google.com" from accessing a cross-origin frame

1,546 views
Skip to first unread message

Terry Pietrondi

unread,
Mar 29, 2017, 1:50:17 PM3/29/17
to reCAPTCHA
I am seeing the following issues while trying to submit the recaptcha:

Uncaught DOMException: Blocked a frame with origin "https://www.google.com" from accessing a cross-origin frame.

at sm.f.Yb (https://www.gstatic.com/recaptcha/api2/r20170315121834/recaptcha__en.js:242:353)

at sm.wb (https://www.gstatic.com/recaptcha/api2/r20170315121834/recaptcha__en.js:238:59)

I am using the following code to setup:

<script type="text/javascript">

 
var captchaWidgetId = null;
 
var captchaSuccessCallback = function(gRecaptchaResponse) {
 console
.log(gRecaptchaResponse);
 
};

 
var captchaExpCallback = function() {
 
//if(captchaWidgetId != null){
 
// grecaptcha.reset(captchaWidgetId);
 
//}
 
};

 
var captchaLoadCallback = function() {
 captchaWidgetId
= grecaptcha.render(document.getElementById("grecaptchawidget"), {
 
'sitekey' : '${G_RECAPTCHA_SITE_KEY}',
 
'callback' : captchaSuccessCallback,
 
'expired-callback': captchaExpCallback
 
});
 console
.log(captchaWidgetId);

 
};

 
</script>
 
<script src="https://www.google.com/recaptcha/api.js?onload=captchaLoadCallback&render=explicit" async defer></script>


The captchaLoadCallback is called, but the expired-callback is immediately fired and I never hit the success call back. 











Screen Shot 2017-03-29 at 1.40.03 PM.png

Kevin Felisilda

unread,
May 22, 2017, 11:50:29 AM5/22/17
to reCAPTCHA
I'm also experiencing this issue.

Alexander Hromov

unread,
May 23, 2017, 7:21:52 AM5/23/17
to reCAPTCHA
i have same issue

среда, 29 марта 2017 г., 22:50:17 UTC+5 пользователь Terry Pietrondi написал:
Reply all
Reply to author
Forward
0 new messages