fix csrf check

This commit is contained in:
2023-10-29 23:29:22 +01:00
parent 6529bcac9a
commit b29efdb503

View File

@@ -28,6 +28,7 @@ DEBUG = os.getenv("DRF_DEBUG", False) == "True"
ALLOWED_HOSTS = os.environ.get("ALLOWED_HOSTS", "").split(",")
ALLOWED_HOSTS = [] if not any(ALLOWED_HOSTS) else ALLOWED_HOSTS
CSRF_TRUSTED_ORIGINS = ALLOWED_HOSTS
# Application definition