Self hosted FLOSS fitness/workout, nutrition and weight tracker
Correctly set the default value for the csrf trusted origins
Roland Geidere69b68a12b2d
diff --git a/extras/docker/development/settings.py b/extras/docker/development/settings.pyindex 32bd9110a..3624cabde 100644--- a/extras/docker/development/settings.py+++ b/extras/docker/development/settings.py@@ -136,4 +136,7 @@ SIMPLE_JWT['SIGNING_KEY'] = env.str("SIGNING_KEY", SECRET_KEY)## https://docs.djangoproject.com/en/4.1/ref/csrf/#-CSRF_TRUSTED_ORIGINS = env.list("CSRF_TRUSTED_ORIGINS", ['http://127.0.0.1', ])+CSRF_TRUSTED_ORIGINS = env.list(+ "CSRF_TRUSTED_ORIGINS",+ default=['http://127.0.0.1', 'http://localhost'],+)