diff --git a/mittaridatapumppu-deviceregistry/deviceregistry/settings.py b/mittaridatapumppu-deviceregistry/deviceregistry/settings.py index 87c7adc..4a3594c 100644 --- a/mittaridatapumppu-deviceregistry/deviceregistry/settings.py +++ b/mittaridatapumppu-deviceregistry/deviceregistry/settings.py @@ -21,6 +21,7 @@ # Platta uses mSECRET_KEY as the name for the variable. mSECRET_KEY=(str, ""), ALLOWED_HOSTS=(list, ["deviceregistry", "localhost", "127.0.0.1", "[::1]"]), + CSRF_TRUSTED_ORIGINS=(list, ["https://deviceregistry"]), DJANGO_DB_NAME=(str, "postgres"), DJANGO_DB_USER=(str, "postgres"), DJANGO_DB_PASSWORD=(str, "postgres"), @@ -42,6 +43,7 @@ DEBUG = env("DEBUG") ALLOWED_HOSTS = env("ALLOWED_HOSTS") +CSRF_TRUSTED_ORIGINS = env("CSRF_TRUSTED_ORIGINS") # Application definition