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

Captcha wont display in browser #48

Open
fcasalderrey opened this issue Nov 14, 2022 · 5 comments
Open

Captcha wont display in browser #48

fcasalderrey opened this issue Nov 14, 2022 · 5 comments

Comments

@fcasalderrey
Copy link

Hi,
After the first wrong login, the captcha wont display.
If i use chrome debug tool (F12) it shows this message: Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist.
The captcha properties are both set: $config['recaptcha_publickey'] and $config['recaptcha_privatekey'].
Any ideas?
Thanks

@pbiering
Copy link

Could not establish connection. Receiving end does not exist.

sounds like your browser can't connect...potentially the URL for the CAPTCHA javascript library file is broken...ckeck page source and look for

<script src="https://www.google.com/recaptcha/api.js?..."></script>

it should reflect the configuration parameter configured in rcguard/config.inc.php

$rcmail_config['recaptcha_api_url'] = 'https://www.google.com/recaptcha/api.js';

@fcasalderrey
Copy link
Author

Hi,
Thanks for your soon answer.
I check my $rcmail_config['recaptcha_api_url'] and its ok.
I think that the browser is blocking the URL, the exact message in the console log is: content.js:1 Unable to check top-level optout: Blocked a frame with origin "https://www.google.com" from accessing a cross-origin frame.
I am using captcha v3.

Thanks

@pbiering
Copy link

That is strange, at least here (roundcubemail 1.6.0) there is no frame tag in the HTML source code if the login page...can you check on your side? If so, what is the reason behind?

@fcasalderrey
Copy link
Author

Tried with v2 and its works.
I have roundcube 1.6.0 (docker) and with captcha v3 could not make it work.

@pbiering
Copy link

pbiering commented Aug 1, 2023

can this be reproduced with latest release from here?

https://github.com/pbiering/roundcube-rcguard

If not, please close this issue.

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

2 participants