Aiohttp-remotes
lastmod 2026-11-10created 2021-03-032 edits
aiohttp-remotes is a set of middlewares that help an aiohttp server running behind a reverse proxy correctly recognize the real client IP and scheme. It interprets the X-Forwarded-For and Forwarded headers or the PROXY protocol to correct request.remote and request.scheme, and lets you specify trusted proxy addresses to prevent header spoofing.