File tree Expand file tree Collapse file tree
manage_breast_screening/config Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ DATABASE_HOST=localhost
1111LOG_QUERIES= 0
1212PERSONAS_ENABLED= 1
1313
14+ CSRF_COOKIE_SECURE= False
15+ SESSION_COOKIE_SECURE= False
16+
1417# Set to FQDN in deployed environments
1518BASE_URL= http://localhost:8000
1619
Original file line number Diff line number Diff line change @@ -37,8 +37,8 @@ def list_env(key):
3737ALLOWED_HOSTS = list_env ("ALLOWED_HOSTS" )
3838CSRF_TRUSTED_ORIGINS = list_env ("CSRF_TRUSTED_ORIGINS" )
3939
40- CSRF_COOKIE_SECURE = True
41- SESSION_COOKIE_SECURE = True
40+ CSRF_COOKIE_SECURE = boolean_env ( "CSRF_COOKIE_SECURE" , default = True )
41+ SESSION_COOKIE_SECURE = boolean_env ( "SESSION_COOKIE_SECURE" , default = True )
4242# SECURE_SSL_REDIRECT is set to False because TLS termination is handled at the Azure Container Apps layer
4343SECURE_SSL_REDIRECT = False
4444
You can’t perform that action at this time.
0 commit comments