We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7e2f6c commit f4db2d1Copy full SHA for f4db2d1
1 file changed
docs/ref/settings.txt
@@ -3172,6 +3172,10 @@ The domain to use for session cookies. Set this to a string such as
3172
``"example.com"`` for cross-domain cookies, or use ``None`` for a standard
3173
domain cookie.
3174
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
+
3179
Be cautious when updating this setting on a production site. If you update
3180
this setting to enable cross-domain cookies on a site that previously used
3181
standard domain cookies, existing user cookies will be set to the old
0 commit comments