Express trust proxy: Reading the Real Client IP Behind Nginx and CDNs
When Express sits behind Nginx or a CDN, req.ip is wrong by default. Learn how trust proxy works, configure trusted hops safely, and verify client-IP behavior without exposing your app to header spoofing.