Skip to content

Commit

Permalink
use correct CSRF_TRUSTED_ORIGINS
Browse files Browse the repository at this point in the history
  • Loading branch information
czue committed May 9, 2024
1 parent 770760a commit a141e20
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bigday/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@
MAIL_BACKEND = "console"

ALLOWED_HOSTS = ["my_website_url"]
CSRF_TRUSTED_ORIGINS = ["my_website_url",'https://127.0.0.1' ]
CSRF_TRUSTED_ORIGINS = [
"http://example.com",
'https://127.0.0.1'
]

DEFAULT_AUTO_FIELD = "django.db.models.AutoField"

Expand Down

0 comments on commit a141e20

Please sign in to comment.