Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Google recaptcha is not opening in chrome

SA-32715

Summary



Google recaptcha not opening in Chrome while it works in Internet Explorer browser.

Error Messages


Chrome's developer toolbar Console displays error message as shown below:


Steps to Reproduce



1. Attempt to implement google ReCaptcha as outlined in this PDN article.
https://pdn.pega.com/customizing-captcha-presentation-and-function

2. Follow steps outlined in this document for avoiding Content Security Policy violations.
https://developers.google.com/recaptcha/docs/faq#im-using-content-security-policy-csp-on-my-website-how-can-i-configure-it-to-work-with-recaptcha


Root Cause



An issue in the custom application code or rules.

1. Developer had configured Content Security Policy. They had a few missing links in their script-src section (
https://www.google.com/js/) and image-src section (https://www.google.com/recaptcha/api/image).

2. Developer was using http protocol instead of https in two places (Code that went inside
pyCustomCaptchaBody as well as as well as endpoint URL specified within pyCustomCaptchaConnector.

pyCustomCaptchaBody



Resolution



Perform the following local-change:

1. Modify Content Security Policy rule to include the following links in Script-src and image-src sections.






2. Use https protocol instead of http protocol in pyCustomCaptchaBody as well as pyCustomCaptchaConnector.

Published February 9, 2017 - Updated October 8, 2020

Was this useful?

100% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us