Add "Partitioned" flag to our cookies (#3830)

This commit is contained in:
Raphael Michel
2024-01-25 09:46:04 +01:00
committed by GitHub
parent 6af2d38a98
commit 645c9d5900
2 changed files with 10 additions and 0 deletions

View File

@@ -44,6 +44,8 @@ def set_cookie_without_samesite(request, response, key, *args, **kwargs):
# This will only work on secure cookies as well
# https://www.chromestatus.com/feature/5633521622188032
response.cookies[key]['secure'] = is_secure
# CHIPS
response.cookies[key]['Partitioned'] = True
# Based on https://www.chromium.org/updates/same-site/incompatible-clients