mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 00:55:19 +00:00
make FLoC participation configurable - opt-out by default
This commit is contained in:
parent
b255b26a3b
commit
eb394e6b42
1 changed files with 8 additions and 2 deletions
10
boot.php
10
boot.php
|
@ -2323,8 +2323,14 @@ function construct_page() {
|
||||||
header("X-Content-Type-Options: nosniff");
|
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']) {
|
if (isset(App::$config['system']['public_key_pins']) && App::$config['system']['public_key_pins']) {
|
||||||
header("Public-Key-Pins: " . App::$config['system']['public_key_pins']);
|
header("Public-Key-Pins: " . App::$config['system']['public_key_pins']);
|
||||||
|
|
Loading…
Reference in a new issue