Merge pull request #1211 from YunoHost/kill-floc

[enh] add header to disallow FLoC
This commit is contained in:
Alexandre Aubin 2021-04-15 20:37:39 +02:00 committed by GitHub
commit 4726c48ad5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,6 +33,9 @@ more_set_headers "X-Download-Options : noopen";
more_set_headers "X-Permitted-Cross-Domain-Policies : none"; more_set_headers "X-Permitted-Cross-Domain-Policies : none";
more_set_headers "X-Frame-Options : SAMEORIGIN"; more_set_headers "X-Frame-Options : SAMEORIGIN";
# Disable the disaster privacy thing that is FLoC
more_set_headers "Permissions-Policy : interest-cohort=()";
# Disable gzip to protect against BREACH # Disable gzip to protect against BREACH
# Read https://trac.nginx.org/nginx/ticket/1720 (text/html cannot be disabled!) # Read https://trac.nginx.org/nginx/ticket/1720 (text/html cannot be disabled!)
gzip off; gzip off;