jotes / django-cookies-samesite

This repository contains a middleware which automatically sets SameSite attribute for session and csrf cookies in legacy versions of Django.
BSD 3-Clause "New" or "Revised" License
49 stars 35 forks source link

Fixes #7 - Support 'None' Value #8

Closed jonespm closed 4 years ago

jonespm commented 4 years ago

Because of Google's aggressive timeline for Chrome 80 with this feature enabled planned for February 4th, 2020 it would be good to have support to explicitly set the value for SameSite to be 'none'

This fix just adds that as a supported string the same way as it is supported by the most recent version of Django.

https://www.chromium.org/updates/same-site

jotes commented 4 years ago

@jonespm Thank you! This is a splendid contribution 🎉 I'll merge it right now, but the package will be released within next 24h.