diff --git a/core/settings.py b/core/settings.py index 4e7b22a7b..952006801 100644 --- a/core/settings.py +++ b/core/settings.py @@ -255,3 +255,5 @@ USE_I18N = True LANGUAGE_CODE = "en" LOCALE_PATHS = [BASE_DIR / "locale"] + +CSRF_TRUSTED_ORIGINS = os.environ.get("CSRF_TRUSTED_ORIGINS", "").split(" ") diff --git a/deployments/templates/deployment.yml b/deployments/templates/deployment.yml index 509bebd49..a687b8dfc 100644 --- a/deployments/templates/deployment.yml +++ b/deployments/templates/deployment.yml @@ -46,6 +46,8 @@ spec: value: "$AZURE_REDIRECT_URI" - name: AZURE_AUTHORITY value: "$AZURE_AUTHORITY" + - name: CSRF_TRUSTED_ORIGINS + value: "${CSRF_TRUSTED_ORIGINS}" - name: SECRET_KEY valueFrom: secretKeyRef: