Last active
September 29, 2021 03:51
-
-
Save henshaw/1f7857b785672604026d42470afa463e to your computer and use it in GitHub Desktop.
Block FLoC in WordPress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Disable FLoC | |
function disable_floc($headers) { | |
$headers['Permissions-Policy'] = 'interest-cohort=()'; | |
return $headers; | |
} | |
add_filter('wp_headers', 'disable_floc'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From Opting your Website out of Google's FLoC Network