Trusted origin should include schema

This commit is contained in:
Daoud Clarke 2023-10-27 13:26:47 +01:00
parent aa8761eeb7
commit 5be536274f

View file

@ -12,7 +12,7 @@ DATABASES = {'default': dj_database_url.config(default=os.environ["DATABASE_URL"
DEBUG = True # TODO set back to False
ALLOWED_HOSTS = ["api.mwmbl.org", "mwmbl.org", "beta.mwmbl.org"]
CSRF_TRUSTED_ORIGINS = list(ALLOWED_HOSTS)
CSRF_TRUSTED_ORIGINS = [f"https://{domain}" for domain in ALLOWED_HOSTS]
DATA_PATH = "/app/storage"