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.

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • caution Maintenance fixes only
    Considered feature-complete by its maintainers.
  • chart icon6 sites report using this module
  • Created by ruuds on , updated
  • shieldStable releases for this project are covered by the security advisory policy.
    Look for the shield icon below.

Releases