From 7ccd7b439f5a029384ecb28911a0df6f6d658231 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 16 Apr 2021 09:14:40 +0000 Subject: floc off google --- boot.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'boot.php') diff --git a/boot.php b/boot.php index 26286d644..039dda1b8 100644 --- a/boot.php +++ b/boot.php @@ -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']); } -- cgit v1.2.3