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

This commit is contained in:
swaggboi 2021-04-20 13:11:32 -04:00
parent fbf180b9a8
commit 4520425e2b

View File

@ -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;
};