Skip to content

Commit

Permalink
Add CSRF_TRUSTED_ORIGINS to settings.py
Browse files Browse the repository at this point in the history
  • Loading branch information
laurigates committed Oct 23, 2023
1 parent 62304da commit 1eac03f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mittaridatapumppu-deviceregistry/deviceregistry/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand All @@ -42,6 +43,7 @@
DEBUG = env("DEBUG")

ALLOWED_HOSTS = env("ALLOWED_HOSTS")
CSRF_TRUSTED_ORIGINS = env("CSRF_TRUSTED_ORIGINS")

# Application definition

Expand Down

0 comments on commit 1eac03f

Please sign in to comment.