From 07dae9dd30e874f7485a94ddadd589854c28066d Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Wed, 11 Jan 2023 08:43:34 +0100 Subject: [PATCH] Resolve ReCaptcha CSP #841 --- plugins/recaptcha/index.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/plugins/recaptcha/index.php b/plugins/recaptcha/index.php index bf30f23ea..d4935b8e8 100644 --- a/plugins/recaptcha/index.php +++ b/plugins/recaptcha/index.php @@ -6,8 +6,8 @@ class RecaptchaPlugin extends \RainLoop\Plugins\AbstractPlugin NAME = 'reCaptcha', AUTHOR = 'SnappyMail', URL = 'https://snappymail.eu/', - VERSION = '2.13', - RELEASE = '2022-12-08', + VERSION = '2.14', + RELEASE = '2023-01-11', REQUIRED = '2.23', CATEGORY = 'General', LICENSE = 'MIT', @@ -141,10 +141,12 @@ class RecaptchaPlugin extends \RainLoop\Plugins\AbstractPlugin public function ContentSecurityPolicy(\SnappyMail\HTTP\CSP $CSP) { - $CSP->script[] = 'https://www.google.com/recaptcha/'; +// $CSP->script[] = 'https://www.google.com/recaptcha/'; $CSP->script[] = 'https://www.gstatic.com/recaptcha/'; - $CSP->frame[] = 'https://www.google.com/recaptcha/'; - $CSP->frame[] = 'https://recaptcha.google.com/recaptcha/'; + $CSP->script[] = 'https://www.recaptcha.net/recaptcha/'; +// $CSP->frame[] = 'https://www.google.com/recaptcha/'; +// $CSP->frame[] = 'https://recaptcha.google.com/recaptcha/'; + $CSP->frame[] = 'https://www.recaptcha.net/recaptcha/'; } }