Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<google-recaptcha> is not working for me in chrome. same code is working fine in IE + firefox + safari. getting Error : "Uncaught DOMException: Blocked a frame with origin "https://www.google.com" from accessing a cross-origin frame"" #7

Open
vyomabypt opened this issue Feb 1, 2019 · 2 comments

Comments

@vyomabypt
Copy link

Hi,

Here, i have uploaded my source code.

i have written captcha code in my-samplepage.html.

That same code is working fine in IE + Firefox + safari but getting below error in chrome.


Uncaught DOMException: Blocked a frame with origin "https://www.google.com" from accessing a cross-origin frame.
    at lb.t.tZ (https://www.gstatic.com/recaptcha/api2/v1548052318968/recaptcha__en.js:515:271)
    at yj (https://www.gstatic.com/recaptcha/api2/v1548052318968/recaptcha__en.js:522:135)
    at Object.init (https://www.gstatic.com/recaptcha/api2/v1548052318968/recaptcha__en.js:527:434)
    at https://www.google.com/recaptcha/api2/bframe?hl=en&v=v1548052318968&k=6LcI04UUAAAAADBTEtJ0exAwAe57vkNqObj6tKIQ&cb=r1oyt78mj7bb:184:30

https://github.com/cbalit/re-captcha/files/2821304/firstdemo.zip

Could you please assist me here?

Thanks in Advanced!

@vyomabypt vyomabypt changed the title <google-recaptcha> is not working for me in chrome. same code is working fine in IR + firefox + safari. getting Error : "Uncaught DOMException: Blocked a frame with origin "https://www.google.com" from accessing a cross-origin frame"" <google-recaptcha> is not working for me in chrome. same code is working fine in IE + firefox + safari. getting Error : "Uncaught DOMException: Blocked a frame with origin "https://www.google.com" from accessing a cross-origin frame"" Feb 1, 2019
@apesteguy
Copy link

Hey @vyomabypt did you find a solution ? I am facing the same issue :-)

@vpalos
Copy link

vpalos commented Sep 18, 2019

Hi, after some searching I found this: https://medium.com/@tomas_26986/using-recaptcha-with-react-and-shadow-dom-abfd19fa03a

So, the issue is that (perhaps) you're rendering the reCaptcha inside a Shadow DOM element.
This was exactly my case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants