added CSRF trusted origin config, added tzdata - needed in debug mode

This commit is contained in:
Stefan Strobel 2024-11-19 23:09:53 +01:00
parent 841be4f1bb
commit 5163834de4
2 changed files with 2 additions and 0 deletions

View File

@ -31,5 +31,6 @@ setuptools==75.3.0
sqlparse==0.4.1
toml==0.10.2
typing_extensions==4.12.2
tzdata==2024.2
urllib3==2.2.3
wrapt==1.12.1

View File

@ -56,6 +56,7 @@ if get_env_value('DJANGO_FORCE_DEV_MODE', default=False) == 'True':
ALLOWED_HOSTS = ['127.0.0.1', 'localhost', get_env_value('DJANGO_ALLOWED_HOST')]
CSRF_TRUSTED_ORIGINS =['https://' + get_env_value('DJANGO_ALLOWED_HOST')]
# Application definition