Skip to content

Commit

Permalink
Added csrf environment variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmccully committed Nov 20, 2024
1 parent d6afc7a commit e30aa18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "Continuous Deployment"
on:
push:
branches:
- main
- fix/csrf
release:
types:
- published
Expand Down
1 change: 1 addition & 0 deletions banzai_floyds_ui/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@
},
]

CSRF_TRUSTED_ORIGINS = os.getenv('CSRF_TRUSTED_ORIGINS', 'localhost').split(',')

# Internationalization
# https://docs.djangoproject.com/en/4.1/topics/i18n/
Expand Down

0 comments on commit e30aa18

Please sign in to comment.