spatie/laravel-disable-floc
Automatically disables Google’s FLoC in Laravel apps by adding a Permissions-Policy header. Installs via Composer and works out of the box—no configuration needed. Applies the header to responses that don’t already set Permissions-Policy.
Adopt if:
navigator.permissions.query({ name: 'interest-cohort' })).Look elsewhere if:
For Executives: *"This package lets us automatically disable Google’s FLoC—a privacy-invasive tracking technology—in our Laravel apps with zero code changes. It’s a low-effort way to:
For Engineering:
*"This is a 5-minute install that adds a DisableFlocMiddleware to your Laravel stack. Key points:
<meta> tag to block FLoC at the HTTP level (no JavaScript needed).app/Http/Kernel.php during our next privacy sprint. Pair with documentation for future maintainers."*How can I help you explore Laravel packages today?