Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By mcdruid on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
7.x
Introduced in version:
7.81
Issue links:
Description:
See D9's CR: https://www.drupal.org/node/3213197
To disable this in D7, see default.settings.php
/**
* Add Permissions-Policy header to disable Google FLoC.
*
* By default, Drupal sends the 'Permissions-Policy: interest-cohort=()' header
* to disable Google's Federated Learning of Cohorts feature, introduced in
* Chrome 89.
*
* See https://en.wikipedia.org/wiki/Federated_Learning_of_Cohorts for more
* information about FLoC.
*
* If you don't wish to disable FLoC in Chrome, you can set this value
* to FALSE.
*/
# $conf['block_interest_cohort'] = TRUE;
Impacts:
Site builders, administrators, editors
Comments
Should FLoC be replaced by Topics API and how to fix error messa
Isn't FLoC replaced by Topics API ?
https://blog.google/products/chrome/get-know-new-topics-api-privacy-sand...
Anyway, if we don't want to see this console message on our Drupal site:
Error with Permissions-Policy header: Unrecognized feature: 'interest-cohort'.
What should we do to fix this?
To disable in D9
If you want to disable it in D9:
put
$settings['block_interest_cohort'] = FALSE;
in your settings.php file.Maybe consider the issue that added this first.