mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-02-25 23:40:24 +08:00
Also prevent Google FLoC in .htaccess
This commit is contained in:
parent
0a03f9768f
commit
19492a714d
2 changed files with 5 additions and 0 deletions
|
@ -28,6 +28,9 @@ RewriteRule cpsess.* https://%{HTTP_HOST}/ [L,R=301]
|
|||
Header set X-XSS-Protection "1; mode=block"
|
||||
Header set Service-Worker-Allowed "/"
|
||||
|
||||
# Google FLoC
|
||||
Header set Permissions-Policy "interest-cohort=()"
|
||||
|
||||
RewriteCond %{HTTP:Accept-encoding} br
|
||||
RewriteCond "%{REQUEST_FILENAME}\.br" -s
|
||||
RewriteRule "^(.+)" "$1\.br" [L,T=text/javascript,QSA]
|
||||
|
|
|
@ -41,6 +41,8 @@ class Service
|
|||
|
||||
\header('Referrer-Policy: no-referrer');
|
||||
\header('X-Content-Type-Options: nosniff');
|
||||
|
||||
// Google FLoC
|
||||
\header('Permissions-Policy: interest-cohort=()');
|
||||
|
||||
$sContentSecurityPolicy = \trim($this->oActions->Config()->Get('security', 'content_security_policy', '')) ?: APP_DEFAULT_CSP;
|
||||
|
|
Loading…
Reference in a new issue