add CSRF_TRUSTED_ORIGINS to settings and update .env.example
This commit is contained in:
@@ -27,6 +27,7 @@ DEBUG = os.getenv('DEBUG', 'false').lower() == 'true'
|
||||
|
||||
ALLOWED_HOSTS: list[str] = os.getenv('ALLOWED_HOSTS', '').split(',') if os.getenv('ALLOWED_HOSTS') else ['*']
|
||||
CORS_ALLOWED_ORIGINS = os.getenv('CORS_ALLOWED_ORIGINS', '').split(',') if os.getenv('CORS_ALLOWED_ORIGINS') else []
|
||||
CSRF_TRUSTED_ORIGINS = os.getenv('CSRF_TRUSTED_ORIGINS', '').split(',') if os.getenv('CSRF_TRUSTED_ORIGINS') else []
|
||||
|
||||
# Application definition
|
||||
|
||||
|
Reference in New Issue
Block a user