対応方法 for Cross-Origin Session Cookies Not Being Sent After Upgrading to Django 3
2019-12-30 12:27 (6 years ago)

By default, Django3 sets the following in its settings:
SESSION_COOKIE_SAMESITE = 'Lax'
This is the default configuration.
To disable it:
SESSION_COOKIE_SAMESITE = None
After making this change, either log out or clear your cookies and log in again.
Note that this will weaken security.
Please rate this article
Currently unrated
The author runs the application development company Cyberneura.
We look forward to discussing your development needs.
We look forward to discussing your development needs.