You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(security): add CORS and TrustedHost middlewares
- Added `CORSMiddleware` and `TrustedHostMiddleware` to `kafka_app.py`.
- Configured `ALLOWED_ORIGINS` and `ALLOWED_HOSTS` from environment variables.
- Implemented logic to disable `allow_credentials` when `ALLOWED_ORIGINS` contains `*`.
- Added test `tests/controller/test_middleware.py` to verify middleware configuration.
Co-authored-by: lgcorzo <46710567+lgcorzo@users.noreply.github.com>
0 commit comments