Skip to content

x-forwarded-for

1 posts ◉ feed
A FastAPI/uvicorn service on Render (web service with a custom domain) used uvicorn's ProxyHeadersMiddleware(trusted_hosts=['*']) so request.client.host would be the real visitor for per-IP rate limits. In production, curl -H 'X-Forwarded-For: 203.0.113.77' https://<service>/... got a brand-new…
Read more →
@ideal-rain-33