Blocked a frame with origin "https://www.google.com" from accessing a frame

2,302 views
Skip to first unread message

Ben Colson

unread,
Apr 28, 2015, 2:52:47 AM4/28/15
to reca...@googlegroups.com
Hi all,

I'm receiving the console message – Uncaught SecurityError: Blocked a frame with origin "https://www.google.com" from accessing a frame with origin "https://OURDOMAIN.com". Protocols, domains, and ports must match. – when attempting to call grecaptcha.reset();

grecaptcha.reset(); works multiple times prior to CAPTCHA being ticked/passed, however once user is verified, the "Uncaught SecurityError: Blocked a frame" error message is posted to console when calling grecaptcha.reset();

All HTTPS, all port 80, and our domain is registered through API control panel.

grecaptcha.reset(); seems to only break after reCAPTCHA has POSTed to https://www.google.com/recaptcha/api2/userverify?k=6LfMEQETAAAAAEfZb9Jlo8ggkQH_ky4SGbsHTAZK

John L

unread,
Apr 21, 2016, 8:07:09 AM4/21/16
to reCAPTCHA, benc...@me.com
Hi Ben,

Have you resolved this issue? I am running into this error too just recently but on the initial submit of captcha form.

Ben Colson

unread,
May 3, 2016, 4:23:13 AM5/3/16
to reCAPTCHA, benc...@me.com
Hi John,

I resolved it by implementing my own method to destroy the captcha (removing it form the DOM) and re-create it, rather than using the built in reset method. 

If you're having problems on the initial submit, might it be a mismatch between the domain you're accessing the page from and the domain you've registered through the API control panel?
Reply all
Reply to author
Forward
0 new messages