aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php8
1 files changed, 8 insertions, 0 deletions
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']);
}