Skip to content

Commit 63bf26e

Browse files
committed
Add comment about cookie age
1 parent fdb7ee2 commit 63bf26e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

label_studio/core/settings/base.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,9 @@
427427
CSRF_COOKIE_SECURE = bool(int(get_env('CSRF_COOKIE_SECURE', SESSION_COOKIE_SECURE)))
428428
CSRF_COOKIE_HTTPONLY = bool(int(get_env('CSRF_COOKIE_HTTPONLY', SESSION_COOKIE_SECURE)))
429429
CSRF_COOKIE_SAMESITE = get_env('CSRF_COOKIE_SAMESITE', 'Lax')
430+
431+
# default value is from django docs: https://docs.djangoproject.com/en/5.1/ref/settings/#csrf-cookie-age
432+
# approximately 1 year
430433
CSRF_COOKIE_AGE = int(get_env('CSRF_COOKIE_AGE', 31449600))
431434

432435

0 commit comments

Comments
 (0)