対応方法 for Cross-Origin Session Cookies Not Being Sent After Upgrading to Django 3

2019-12-30 21:27 (4 years ago) ytyng

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.

Currently unrated

Comments

Archive

2024
2023
2022
2021
2020
2019
2018
2017
2016
2015
2014
2013
2012
2011