Projet

Général

Profil

0001-settings-set-cookie-SECURE-and-SAMESITE-attributes-7.patch

Benjamin Dauvergne, 30 novembre 2022 14:43

Télécharger (829 octets)

Voir les différences:

Subject: [PATCH] settings: set cookie SECURE and SAMESITE attributes (#71880)

 src/authentic2/settings.py | 8 ++++++++
 1 file changed, 8 insertions(+)
src/authentic2/settings.py
55 55
    }
56 56
}
57 57

  
58
# Cookies
59
SESSION_COOKIE_SECURE = True
60
SESSION_COOKIE_SAMESITE = 'None'
61
CSRF_COOKIE_SECURE = True
62
CSRF_COOKIE_SAMESITE = 'Lax'
63
LANGUAGE_COOKIE_SECURE = True
64
LANGUAGE_COOKIE_SAMESITE = 'None'
65

  
58 66
# Hey Entr'ouvert is in France !!
59 67
TIME_ZONE = 'Europe/Paris'
60 68
LANGUAGE_CODE = 'fr'
61
-