mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 19:42:36 +02:00
pass CSRF_TRUSTED_ORIGINS env to settings
fixes https://github.com/umap-project/umap/issues/2655
This commit is contained in:
parent
c4614354ae
commit
cc7685ca3f
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"])
|
INTERNAL_IPS = env.list("INTERNAL_IPS", default=["127.0.0.1"])
|
||||||
ALLOWED_HOSTS = env.list("ALLOWED_HOSTS", default=["*"])
|
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=[]))
|
ADMINS = tuple(parseaddr(email) for email in env.list("ADMINS", default=[]))
|
||||||
ASGI_APPLICATION = "umap.asgi.application"
|
ASGI_APPLICATION = "umap.asgi.application"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue