Skip to content

armgit / mwmbl

Public Imported from GitHub
0

An open source, non-profit web search engine

Trusted origin should include schema

Daoud Clarke5be536274f2e
diff --git a/mwmbl/settings_prod.py b/mwmbl/settings_prod.py
index 5b2b0bd..8c881c9 100644
--- a/mwmbl/settings_prod.py
+++ b/mwmbl/settings_prod.py
@@ -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"