From 4520425e2b932ae17098dfd7c6ccf2530ae3568d Mon Sep 17 00:00:00 2001 From: swaggboi Date: Tue, 20 Apr 2021 13:11:32 -0400 Subject: [PATCH] Add `Permissions-Policy` response header to opt out of Google FLoC --- www-swagg.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/www-swagg.pl b/www-swagg.pl index c9fbc90..9c078ee 100755 --- a/www-swagg.pl +++ b/www-swagg.pl @@ -29,6 +29,10 @@ under sub { # Pass in the expiration for plain-text cookie $c->stash(sessionLife => $sessionLife); + # Opt out of Google FLoC + # https://paramdeo.com/blog/opting-your-website-out-of-googles-floc-network + $c->res->headers->header('Permissions-Policy', 'interest-cohort=()'); + 1; };