Skip to content

Commit

Permalink
Refs #28741 -- Doc'd SESSION_COOKIE_DOMAIN requirement with CSRF_USE_…
Browse files Browse the repository at this point in the history
…SESSIONS.

Similar considerations as refs #32065, again adding some nuance to
afd375f.
  • Loading branch information
timgraham authored and felixxm committed Jan 4, 2021
1 parent 3363cf4 commit 2e7ba60
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/ref/settings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3167,6 +3167,10 @@ The domain to use for session cookies. Set this to a string such as
``"example.com"`` for cross-domain cookies, or use ``None`` for a standard
domain cookie.

To use cross-domain cookies with :setting:`CSRF_USE_SESSIONS`, you must include
a leading dot (e.g. ``".example.com"``) to accommodate the CSRF middleware's
referer checking.

Be cautious when updating this setting on a production site. If you update
this setting to enable cross-domain cookies on a site that previously used
standard domain cookies, existing user cookies will be set to the old
Expand Down

0 comments on commit 2e7ba60

Please sign in to comment.