Change record status: 
Project: 
Introduced in branch: 
7.x
Introduced in version: 
7.81
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
Updates Done (doc team, etc.)
Online documentation: 
Not done
Theming guide: 
Not done
Module developer documentation: 
Not done
Examples project: 
Not done
Coder Review: 
Not done
Coder Upgrade: 
Not done
Other: 
Other updates done

Comments

flyke’s picture

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?

simgui8’s picture

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.