Change default binding from 0.0.0.0 to 127.0.0.1 to align with security recommendations (#738)

This commit is contained in:
ciccolo-anthropic 2025-05-20 12:23:19 -07:00 • committed by GitHub
commit 2ca2de767b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -27,7 +27,7 @@ Example usage:
# Create and run Starlette app
starlette_app = Starlette(routes=routes)
uvicorn.run(starlette_app, host="0.0.0.0", port=port)
uvicorn.run(starlette_app, host="127.0.0.1", port=port)
```
Note: The handle_sse function must return a Response to avoid a "TypeError: 'NoneType'