Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 991 Bytes

README.md

File metadata and controls

40 lines (26 loc) · 991 Bytes

django-floc-disable

unit test

Django middleware to disable Google's Federated Learning of Cohorts (FLoC) tracking

Python / Django Support

  • Python 3.6+
  • Django versions 3+

Usage

Install django-floc-disable:

pip install django-floc-disable

Add it to your MIDDLEWARE tuple in settings.py:

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.

Support

License

The MIT License (MIT). Please see License File for more information.