mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 06:35:15 +00:00
Merge branch 'dev' of ../p3 into dev
This commit is contained in:
commit
3b17404da0
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");
|
||||
}
|
||||
|
||||
// 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']);
|
||||
|
|
Loading…
Reference in a new issue