chore: Keep default CSRF_TRUSTED_ORIGINS when in debug mode (#5827)
This commit is contained in:
parent
01e2d8b2bf
commit
6f361f9574
|
@ -1295,6 +1295,6 @@ if SERVER_MODE != 'production':
|
|||
# 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']
|
||||
SESSION_COOKIE_SECURE = False
|
||||
SESSION_COOKIE_SAMESITE = 'Lax'
|
||||
|
|
Loading…
Reference in a new issue