mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 11:32:38 +02:00
feat: pass CSRF_TRUSTED_ORIGINS env to settings (#2656)
Allow to manage djangos CSRF_TRUSTED_ORIGINS by environment variables. Closes #2655
This commit is contained in:
commit
6945a5e867
1 changed files with 1 additions and 0 deletions
|
@ -19,6 +19,7 @@ env = environ.Env()
|
|||
|
||||
INTERNAL_IPS = env.list("INTERNAL_IPS", default=["127.0.0.1"])
|
||||
ALLOWED_HOSTS = env.list("ALLOWED_HOSTS", default=["*"])
|
||||
CSRF_TRUSTED_ORIGINS = env.list("CSRF_TRUSTED_ORIGINS", default=[])
|
||||
ADMINS = tuple(parseaddr(email) for email in env.list("ADMINS", default=[]))
|
||||
ASGI_APPLICATION = "umap.asgi.application"
|
||||
|
||||
|
|
Loading…
Reference in a new issue