diff --git a/help_to_heat/settings.py b/help_to_heat/settings.py index 1c6dffb6..c4f060ac 100644 --- a/help_to_heat/settings.py +++ b/help_to_heat/settings.py @@ -258,6 +258,8 @@ def show_toolbar(request): TOTP_ISSUER = "Help to Heat Supplier Portal" +CSRF_TRUSTED_ORIGINS = [BASE_URL] + if not DEBUG: SESSION_COOKIE_SECURE = True SESSION_EXPIRE_AT_BROWSER_CLOSE = True