[ZendTo] ReCaptcha not showing

Scott Silva ssilva at sgvwater.com
Fri May 8 17:01:44 BST 2020


I get a 404 error from here… California, US


From: ZendTo <zendto-bounces at zend.to> On Behalf Of Jules via ZendTo
Sent: Friday, May 8, 2020 1:37 AM
To: ZendTo Users <zendto at zend.to>
Cc: Jules <Jules at Zend.To>
Subject: Re: [ZendTo] ReCaptcha not showing

Can you browse to
    https://www.recaptcha.net
okay from a web browser?

If so, the thing to check is your
    /etc/httpd/conf.d/zendto-ssl.conf
or
    /etc/apache2/sites-available/001-zendto-ssl.conf
file.

In that file, look for this setting:
    Header set Content-Security-Policy
If that setting does not include recaptcha.net at all, then replace that line with this line:
  Header set Content-Security-Policy "default-src 'none'; script-src 'self' 'unsafe-inline' https://www.google.com https://www.gstatic.com https://www.recaptcha.net; connect-src 'self' 'unsafe-inline'; img-src * ; font-src 'self' 'unsafe-inline'  https://fonts.googleapis.com https://fonts.gstatic.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; frame-src 'self' 'unsafe-inline' https://www.google.com https://www.gstatic.com"

Then restart Apache with
    systemctl restart httpd
or
    systemctl restart apache2

Let me know if that fixes it for you.

Cheers,
Jules.
On 08/05/2020 00:03, Chris Venter via ZendTo wrote:
Hi

After upgrading to the latest version I noticed that the Re-captcha was not showing (Using V2 Checkbox), after digging around in the page source I noticed that the site is now using <script src="https://www.recaptcha.net/recaptcha/api.js?hl=en-GB&onload=onloadCallback&render=explicit" async defer></script> changing this back to <script src="https://www.google.com/recaptcha/api.js?hl=en-GB&onload=onloadCallback&render=explicit" async defer></script> fixed the issue.

I know that using the recaptcha.net<http://recaptcha.net> has something to do with global use and allowing recaptcha in countries where google.com<http://google.com> is not accessible, I think, but as I do not know too much about google captcha could this be a setting I have wrong on the google side of things I was looking in the admin console and there does not seem to be too many settings though?

Thanks for the great product any help would be appreciated,

Regards
Chris





_______________________________________________

ZendTo mailing list

ZendTo at zend.to<mailto:ZendTo at zend.to>

http://jul.es/mailman/listinfo/zendto



Jules



--

Julian Field MEng CEng CITP MBCS MIEEE MACM



'What happened in the past that was painful, has a great deal to

 do with what we are today.' - William Glasser



www.Zend.To<http://www.Zend.To>

Twitter: @JulesFM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jul.es/pipermail/zendto/attachments/20200508/0afa975c/attachment-0001.html>


More information about the ZendTo mailing list