Drupal is a registered trademark of Dries Buytaert

csp_google

3 sites Security covered
View on drupal.org

This modules automatically adds the domain names listed on https://www.google.com/supported_domains to the CSP policy created by the CSP module.

After installation, the domain names can be added by checking the 'Add Google supported domains' checkbox when editing the CSP policy.

Why should I use this?

This is only required if you're using google features that load assets through
country-code top level domains. Basic analytics functionality does not require
these domains, but some of their ad-related features do.

Warning: Take the Content-Security-Policy header length in account!

Please note that when 'Add Google supported domains' is enabled for (all)
individual CSP policies, you might run into issues caused by the length of
the Content-Security-Policy header. When the length is larger than what your
reverse proxy or CDN supports, it might show an 502 error.

Please see https://www.drupal.org/project/drupal/issues/2844620 and
https://www.drupal.org/project/drupal/issues/2954339 for more information.

Activity

Total releases
2
First release
Mar 2025
Latest release
8 months ago
Release cadence
106 days
Stability
100% stable

Releases

Version Type Release date
1.3.0 Stable Jul 4, 2025
1.2.1 Stable Mar 20, 2025