make FLoC participation configurable - opt-out by default

This commit is contained in:
nobody 2021-04-15 16:12:13 -07:00
parent b255b26a3b
commit eb394e6b42

View file

@ -2323,8 +2323,14 @@ function construct_page() {
header("X-Content-Type-Options: nosniff");
}
// Create a preference for this if you wish. But make sure the default is privacy-respecting.
header("Permissions-Policy: interest-cohort=()");
if (isset(App::$config['system']['perm_policy_header']) && App::$config['system']['perm_policy_header']) {
header("Permissions-Policy: " . App::$config['system']['perm_policy_header']);
}
else {
// opt-out this site from federated browser surveillance
header("Permissions-Policy: interest-cohort=()");
}
if (isset(App::$config['system']['public_key_pins']) && App::$config['system']['public_key_pins']) {
header("Public-Key-Pins: " . App::$config['system']['public_key_pins']);