Skip to content

Commit f4db2d1

Browse files
timgrahamfelixxm
authored andcommitted
[3.1.x] Refs #28741 -- Doc'd SESSION_COOKIE_DOMAIN requirement with CSRF_USE_SESSIONS.
Similar considerations as refs #32065, again adding some nuance to afd375f. Backport of 2e7ba60 from master
1 parent a7e2f6c commit f4db2d1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

docs/ref/settings.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3172,6 +3172,10 @@ The domain to use for session cookies. Set this to a string such as
31723172
``"example.com"`` for cross-domain cookies, or use ``None`` for a standard
31733173
domain cookie.
31743174

3175+
To use cross-domain cookies with :setting:`CSRF_USE_SESSIONS`, you must include
3176+
a leading dot (e.g. ``".example.com"``) to accommodate the CSRF middleware's
3177+
referer checking.
3178+
31753179
Be cautious when updating this setting on a production site. If you update
31763180
this setting to enable cross-domain cookies on a site that previously used
31773181
standard domain cookies, existing user cookies will be set to the old

0 commit comments

Comments
 (0)