Skip to content
Snippets Groups Projects
Commit 9810cec4 authored by Neda Moeini's avatar Neda Moeini
Browse files

Update CSRF_TRUSTED_ORIGINS to get the data from env

parent 079df1cc
No related branches found
No related tags found
No related merge requests found
......@@ -131,4 +131,4 @@ STATICFILES_DIRS = [
MEDIA_ROOT = os.getenv("MEDIA_ROOT", BASE_DIR / "media")
MEDIA_URL = '/media/'
CSRF_TRUSTED_ORIGINS = ALLOWED_HOSTS
\ No newline at end of file
CSRF_TRUSTED_ORIGINS = os.getenv("CSRF_TRUSTED_ORIGINS", "").split(",")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment