Django middleware to disable Google's Federated Learning of Cohorts (FLoC
) tracking
- Python 3.6+
- Django versions 3+
Install django-floc-disable:
pip install django-floc-disable
Add it to your INSTALLED_APPS
:
MIDDLEWARE = (
# ...
'django_floc_disable.middleware.FLoCDisableMiddleware',
# ...
)
This will set the Permissions-Policy
header to a value of
interest-cohort=()
for every request served by Django.
- Issues: https://github.com/nhymxu/django-floc-disable/issues
- Here you can donate for this project.
The MIT License (MIT). Please see License File for more information.