Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

CSP Google Supported Domains

Security covered Maintenance fixes only 2 sites

This module automatically adds Google's supported domain names to your Content Security Policy (CSP) to ensure that Google features, like certain ad-related functionalities, can load assets correctly. This is useful if your site uses Google services that pull resources from country-specific Google domains.

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.

Drupal 9–11

Ask your assistant about CSP Google Supported Domains

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
6
Tracked since
Nov 2023
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 2
Maintenance
Slowing

Release Timeline

Releases

Version Type Core PHP Release date
1.3.0 Stable 9–11 Jul 4, 2025
1.2.1 Stable 9–11 Mar 20, 2025
1.2.0 Stable 9–11 Mar 21, 2024
1.0.1 Stable 9–10 Feb 2, 2024
1.0.0 Stable 9–10 Jan 22, 2024
1.0.x-dev Dev 9–11 Nov 28, 2023