Skip to content

Commit

Permalink
Set CSRF_TRUSTED_ORIGINS to CSRF_TRUSTED_ORIGINS
Browse files Browse the repository at this point in the history
  • Loading branch information
thespad committed Jun 7, 2023
1 parent 545ea38 commit bd0cb9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion root/etc/s6-overlay/s6-rc.d/init-healthchecks-config/run
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ if [[ ! -f "/config/local_settings.py" ]] || [[ "${REGENERATE_SETTINGS,,}" == "t
fi
done
if [[ -n ${CSRF_TRUSTED_ORIGINS} ]]; then
insert_config "CSRF_TRUSTED_ORIGINS" "[\"${SITE_ROOT}\"]"
insert_config "CSRF_TRUSTED_ORIGINS" "[\"${CSRF_TRUSTED_ORIGINS}\"]"
else
insert_config "CSRF_TRUSTED_ORIGINS" "[]"
echo "WARNING: CSRF_TRUSTED_ORIGINS is set to allow connections from all origins, this is insecure."
Expand Down

0 comments on commit bd0cb9e

Please sign in to comment.