Add optional CSRF_COOKIE_NAME setting, update example config, and docs.

This commit is contained in:
tyler-8
2022-05-24 10:57:38 -04:00
parent 72726c784a
commit d34d5869be
3 changed files with 12 additions and 0 deletions

View File

@@ -66,6 +66,14 @@ CORS_ORIGIN_WHITELIST = [
---
## CSRF_COOKIE_NAME
Default: `csrftoken`
The name of the cookie to use for the CSRF authentication token. See the [Django documentation](https://docs.djangoproject.com/en/stable/ref/settings/#session-cookie-name) for more detail.
---
## CSRF_TRUSTED_ORIGINS
Default: `[]`