Trusted origins needed for CSRF (https://stackoverflow.com/a/70509982)
This commit is contained in:
parent
4f0b1c44cb
commit
68e28d2e92
1 changed files with 2 additions and 0 deletions
|
@ -12,6 +12,8 @@ DATABASES = {'default': dj_database_url.config(default=os.environ["DATABASE_URL"
|
|||
|
||||
DEBUG = False
|
||||
ALLOWED_HOSTS = ["api.mwmbl.org", "mwmbl.org", "beta.mwmbl.org"]
|
||||
CSRF_TRUSTED_ORIGINS = list(ALLOWED_HOSTS)
|
||||
|
||||
|
||||
DATA_PATH = "/app/storage"
|
||||
RUN_BACKGROUND_PROCESSES = False
|
||||
|
|
Loading…
Add table
Reference in a new issue