1 system.install system_update_1075()

Set a default value for the "Permissions-Policy: interest-cohort" header.

This will make it so that the Google Federated Learning of Cohorts (FLoC) feature that gathers user data without cookies is blocked by default, unless overridden in settings.php.

For more information, see the change record at: https://docs.backdropcms.org/change-records/header-added-by-default-to-d...

Related topics

File

core/modules/system/system.install, line 3309
Install, update and uninstall functions for the system module.

Code

function system_update_1075() {
  $config = config('system.core');
  $config->set('block_interest_cohort', update_variable_get('block_interest_cohort', 1));
  $config->save();

  update_variable_del('block_interest_cohort');
}