Fixes: fix ALLOWED_HOSTS
This commit is contained in:
parent
66157518b8
commit
39f5d19f9b
1 changed files with 5 additions and 1 deletions
|
|
@ -18,7 +18,11 @@ ALLOWED_HOSTS = ["app:8000",
|
|||
"127.0.0.1:8000",
|
||||
"api.127.0.0.1:8000",
|
||||
"b2b.127.0.0.1:8000"]
|
||||
ALLOWED_HOSTS.extend(["*"] if DEBUG else getenv("ALLOWED_HOSTS").split(" "))
|
||||
|
||||
if DEBUG:
|
||||
ALLOWED_HOSTS += ["*"]
|
||||
else:
|
||||
ALLOWED_HOSTS += getenv("ALLOWED_HOSTS").split(" ")
|
||||
|
||||
CSRF_TRUSTED_ORIGINS = getenv("CSRF_TRUSTED_ORIGINS").split(" ")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue