diff options
author | Mario <mario@mariovavti.com> | 2021-04-16 09:14:40 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-04-20 10:58:38 +0200 |
commit | cd760454a5cdaee591bdd2e0b3e0637799e0094e (patch) | |
tree | 4347ce56d79ccd4413b3bc8867fff68c69887921 | |
parent | c7144dbf9696140d21cff87ae93ed9ddd8f07cbd (diff) | |
download | volse-hubzilla-cd760454a5cdaee591bdd2e0b3e0637799e0094e.tar.gz volse-hubzilla-cd760454a5cdaee591bdd2e0b3e0637799e0094e.tar.bz2 volse-hubzilla-cd760454a5cdaee591bdd2e0b3e0637799e0094e.zip |
floc off google
(cherry picked from commit 7ccd7b439f5a029384ecb28911a0df6f6d658231)
-rw-r--r-- | boot.php | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -2460,6 +2460,14 @@ function construct_page() { header("X-Content-Type-Options: nosniff"); } + 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'])) { header("Public-Key-Pins: " . App::$config['system']['public_key_pins']); } |