Middleware to work around #30862
Chrome started rolling out changes that brake Django sites with intentionally
empty SameSite cookie settings.
This middleware sets the value "None" on those cookies explicitly.
Also sets Secure to True for all altered cookies.
Installation
Get it from PyPi:
pip install django-samesite-none
Put it first in the MIDDLEWARE list in your settings.py:
MIDDLEWARE = [
"django_samesite_none.middleware.SameSiteNoneMiddleware",
...
]
Metadata
Release files for django-samesite-none 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-samesite-none-0.0.3.tar.gz | 2.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_samesite_none-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.0 kB
Release files / django-samesite-none-0.0.3.tar.gz
| Download URL | django-samesite-none-0.0.3.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ee4a7cecc12a09fbea5322d433b10bcb790db551029bc2bb4820d33633159aad
|
|
BLAKE2b-256 checksum How to use checksums |
4ef405be89e089776036c34558b01d786b5aea0a87197c30148f2e77c27087be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2
|
Release files / django_samesite_none-0.0.3-py3-none-any.whl
| Download URL | django_samesite_none-0.0.3-py3-none-any.whl |
|---|---|
| Size | 2.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b6b7920a69a1a510c319dbbd29b8b9f590468d5ed2d402e1d6749d7e353eb7d9
|
|
BLAKE2b-256 checksum How to use checksums |
d4a6c7d30d3a92932f66bdc35b8bd166b0fdb040a55252ccdd45e1b8c5fcd739
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2
|