Skip to content

Commit

Permalink
Update Permissions-Policy to disable Topics
Browse files Browse the repository at this point in the history
django-permissions-policy was added by #124 to disable Google's
[Federated Learning of
Cohorts](https://privacysandbox.com/proposals/floc/) (FLoC). FLoC was
replaced by [Topics](https://privacysandbox.com/proposals/topics/) in
May 2023, so we update the Permissions-Policy header to disable Topics.
  • Loading branch information
iaindillingham committed Jul 10, 2024
1 parent 0886e60 commit efd5248
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions actions/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,9 @@ def immutable_file_test(path, url):
# https://github.com/adamchainz/django-permissions-policy/blob/main/README.rst
PERMISSIONS_POLICY = {
"interest-cohort": [],
# The following disables Google's Topics. For more information, see:
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permissions-Policy/browsing-topics
"browsing-topics": [],
}


Expand Down

0 comments on commit efd5248

Please sign in to comment.