feat: added CSRF trusted origins as env var
This commit is contained in:
@@ -15,6 +15,7 @@ SECRET_KEY = env.str("SECRET_KEY", "this-is-the-default-secret-key")
|
||||
DEBUG = env.bool("DEBUG", True)
|
||||
|
||||
CORS_ORIGIN_WHITELIST = env.str('CORS_ORIGIN_WHITELIST', default='').split(',')
|
||||
CSRF_TRUSTED_ORIGINS = env.str('CSRF_TRUSTED_ORIGINS', '').split(',')
|
||||
|
||||
DATABASE_URL = env.db_url("DATABASE_URL", "sqlite:///db.sqlite3")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user