Add Permissions-Policy response header to opt out of Google FLoC

This commit is contained in:
swaggboi 2021-04-20 13:00:52 -04:00
parent 963b7e74f3
commit d6dc6b7d61

View File

@ -13,6 +13,10 @@ get '/' => sub {
else { else {
$c->redirect_to("$scheme://www.wethepeople.win") $c->redirect_to("$scheme://www.wethepeople.win")
} }
# 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=()');
} => 'index'; } => 'index';
app->start(); app->start();