Opt out of FLoC globally

In nginx-proxy, add a permissions-policy header that opts out of
Google's Federated Learning of Cohorts (FLoC).
This commit is contained in:
Reynir Björnsson 2021-04-14 12:52:18 +02:00
parent 9b1dc31163
commit 4c936fc521
2 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,2 @@
# See https://developer.chrome.com/blog/floc/#how-can-websites-opt-out-of-the-floc-computation
add_header Permissions-Policy "interest-cohort=()";

View File

@ -45,3 +45,7 @@
env:
NGINX_PROXY_CONTAINER: nginx-proxy
- name: upload nginx anti floc
copy:
src: files/configs/nginx-proxy/conf.d/anti-floc.conf
dst: "{{ nginx.volume_folder }}/conf/anti-floc.conf"