Skip to content

Commit

Permalink
Updated CSRF requiredin Django 4
Browse files Browse the repository at this point in the history
  • Loading branch information
fbanados committed Aug 23, 2024
1 parent d6291e9 commit 6b3c7fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/crkeng/site/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
PRODUCTION_HOST = "itwewina.altlab.app"

ALLOWED_HOSTS.append(PRODUCTION_HOST)
CSRF_TRUSTED_ORIGINS.append(PRODUCTION_HOST)

INSTALLED_APPS.insert(0, "crkeng.app")

Expand Down
1 change: 1 addition & 0 deletions src/morphodict/site/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@
else: # pragma: no cover
ALLOWED_HOSTS = [HOSTNAME, "localhost"]

CSRF_TRUSTED_ORIGINS = [HOSTNAME]

# Database
# https://docs.djangoproject.com/en/3.2/ref/settings/#databases
Expand Down

0 comments on commit 6b3c7fa

Please sign in to comment.