Skip to content

Commit

Permalink
Add trusted origins setting
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmior committed Jun 25, 2024
1 parent 566d963 commit 41d0383
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pylinks/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
DEBUG = True if os.environ.get("DJANGO_DEBUG", None) == "1" else False

ALLOWED_HOSTS = os.environ.get("HOSTNAMES", "").split(",")
CSRF_TRUSTED_ORIGINS = os.environ.get("CSRF_TRUSTED_ORIGINS", "").split(",")
SITE_DOMAIN = ALLOWED_HOSTS[0]
SESSION_COOKIE_HTTPONLY = True
CSRF_COOKIE_HTTPONLY = True
Expand Down

0 comments on commit 41d0383

Please sign in to comment.