FastAPI - Middleware and Hooks
What is wrong with this FastAPI TrustedHostMiddleware setup?
```python
app.add_middleware(TrustedHostMiddleware, allowed_hosts='example.com')
```
allowed_hosts expects a list of strings.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions