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.
This commit is contained in:
E.Alamo
2024-03-11 14:17:25 +01:00
committed by GitHub
parent 29a878fa4f
commit 4af4a19509

View File

@ -113,7 +113,7 @@ class ReCaptchaWidget extends InputWidget
$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,