Skip to content

Commit

Permalink
fix: add env var for CSRF_TRUSTED_ORIGINS
Browse files Browse the repository at this point in the history
  • Loading branch information
MatMoore committed Aug 14, 2024
1 parent be5f5a2 commit cd23937
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(" ")
2 changes: 2 additions & 0 deletions deployments/templates/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit cd23937

Please sign in to comment.