From 4af4a19509240765b4b2852aa814598a17344b84 Mon Sep 17 00:00:00 2001 From: "E.Alamo" Date: Mon, 11 Mar 2024 14:17:25 +0100 Subject: [PATCH] Use recaptcha.net instead of google.com (EU Cookies law) Recaptcha supports two domains: Google and recaptcha.net. The former may involve more cookies than desired, potentially leading to legal issues for the host. Using the latter has fewer implications. --- src/User/Widget/ReCaptchaWidget.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/User/Widget/ReCaptchaWidget.php b/src/User/Widget/ReCaptchaWidget.php index f5bd2787..7156c61e 100644 --- a/src/User/Widget/ReCaptchaWidget.php +++ b/src/User/Widget/ReCaptchaWidget.php @@ -113,7 +113,7 @@ protected function registerClientScript() $view = $this->getView(); $view->registerJsFile( - '//www.google.com/recaptcha/api.js?hl=' . $this->getLanguageCode(), + '//www.recaptcha.net/recaptcha/api.js?hl=' . $this->getLanguageCode(), [ 'position' => View::POS_HEAD, 'async' => true,