Skip to content

Commit

Permalink
chore: Keep default CSRF_TRUSTED_ORIGINS when in debug mode (#5827)
Browse files Browse the repository at this point in the history
  • Loading branch information
jennifer-richards authored Jun 15, 2023
1 parent 01e2d8b commit 6f361f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ietf/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -1295,6 +1295,6 @@ def skip_unreadable_post(record):
# Cannot have this set to True if we're using http: from the dev-server:
CSRF_COOKIE_SECURE = False
CSRF_COOKIE_SAMESITE = 'Lax'
CSRF_TRUSTED_ORIGINS = ['http://localhost:8000']
CSRF_TRUSTED_ORIGINS += ['http://localhost:8000']

This comment was marked as spam.

Copy link
@Brandon170699Vc

Brandon170699Vc Jun 20, 2023

Local
Si

SESSION_COOKIE_SECURE = False
SESSION_COOKIE_SAMESITE = 'Lax'

0 comments on commit 6f361f9

Please sign in to comment.