<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>reCAPTCHA integration problem</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=110352746" />
  <subtitle>reCAPTCHA integration problem</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=110352746</id>
  <updated>2026-04-06T08:59:32Z</updated>
  <dc:date>2026-04-06T08:59:32Z</dc:date>
  <entry>
    <title>RE: reCAPTCHA integration problem</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110353468" />
    <author>
      <name>Samuel Kong</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110353468</id>
    <updated>2018-06-27T10:30:12Z</updated>
    <published>2018-06-27T10:30:12Z</published>
    <summary type="html">&lt;p&gt;As indicated by the error message, the captcha is not loading because
  of your Content Security Policy (CSP). CSP is something you added
  since this isn't an OOTB feature in the portal. You'll need to
  configure your CSP to allow the captcha to load.&lt;/p&gt;</summary>
    <dc:creator>Samuel Kong</dc:creator>
    <dc:date>2018-06-27T10:30:12Z</dc:date>
  </entry>
  <entry>
    <title>reCAPTCHA integration problem</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110352745" />
    <author>
      <name>Elena Stefanova</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110352745</id>
    <updated>2018-06-27T10:09:08Z</updated>
    <published>2018-06-27T10:09:08Z</published>
    <summary type="html">&lt;p&gt;Hi, there!&lt;/p&gt;
&lt;p&gt;I have an issue with non-working captcha input in my web form, which
  is a standard form created with the form builder app and reCAPTCHA
  enabled into form settings. I also activated reCAPTCHA into
  portal configurations under section &lt;em&gt;Control Panel -&amp;gt;
    Configuration -&amp;gt; Sever administration -&amp;gt; CAPTCHA&lt;/em&gt; as I put
  valid keys too. However, on frontend it is not working for me as I
  constantly get the following error message in browser's console:&lt;/p&gt;
&lt;div class="portlet-msg-error"&gt;Refused to load the script
  'https://www.gstatic.com/recaptcha/api2/v1528855115741/recaptcha__es.js'
  because it violates the following Content Security Policy directive:
  &amp;quot;script-src 'nonce-vYybKbwtEcEKeyqZn3vZTa+++5k' 'unsafe-inline'
  'strict-dynamic' https: http: 'unsafe-eval'&amp;quot;. 'strict-dynamic' is
  present, so host-based whitelisting is disabled.&lt;/div&gt;
&lt;p&gt;I have two projects - one running on liferay-ce-portal-7.0-ga5 and
  another one running on the older liferay-portal-6.2-ce-ga4 version,
  but in both projects I face the same issue with reCAPTCHA integration.&lt;/p&gt;
&lt;p&gt;Can you give me an idea how to solve this problem? Any help will be appreciated!&lt;/p&gt;
&lt;p&gt;Thanks in advance,&lt;/p&gt;
&lt;p&gt;Eli&lt;/p&gt;</summary>
    <dc:creator>Elena Stefanova</dc:creator>
    <dc:date>2018-06-27T10:09:08Z</dc:date>
  </entry>
</feed>
