Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 1.21 KB

README.md

File metadata and controls

45 lines (29 loc) · 1.21 KB

django-floc-disable

unit test

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

New version is Topics API

Python / Django Support

  • Python 3.8+
  • 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 browsing-topics=() for every request served by Django.

Reference:

Support

License

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