chore: Set CSRF_TRUSTED_HOSTS to localhost for dev (#5771)

This commit is contained in:
Jennifer Richards 2023-06-06 17:58:06 -03:00 committed by GitHub
parent edd72826e6
commit 9cee31613b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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']
SESSION_COOKIE_SECURE = False
SESSION_COOKIE_SAMESITE = 'Lax'