fixed csrf

This commit is contained in:
George Green 2022-07-20 21:17:29 +02:00
parent 5ff91ee47f
commit 897ac97423

View File

@ -52,6 +52,9 @@ SHOPPING_MIN_AUTOSYNC_INTERVAL = int(os.getenv('SHOPPING_MIN_AUTOSYNC_INTERVAL',
ALLOWED_HOSTS = os.getenv('ALLOWED_HOSTS').split(',') if os.getenv('ALLOWED_HOSTS') else ['*']
if os.getenv('CSRF_TRUSTED_ORIGINS'):
CSRF_TRUSTED_ORIGINS = os.getenv('CSRF_TRUSTED_ORIGINS').split(',')
CORS_ORIGIN_ALLOW_ALL = True
LOGIN_REDIRECT_URL = "index"