fideloper/proxy
Laravel trusted proxy middleware that correctly detects HTTPS, host, and client IP behind load balancers and reverse proxies by handling X-Forwarded-* headers. Fixes URL generation and request data when running behind ELB, Cloudflare, Nginx, etc.
fideloper/proxy is a Laravel middleware package for correctly handling reverse proxies and load balancers (e.g., Nginx, HAProxy, ELB/Cloudflare). It ensures Laravel can trust forwarded headers so requests reflect the real client, protocol, and host—especially important when your app sits behind one or more proxies.
Use it to normalize request data and avoid issues like incorrect URL generation, mixed-content redirects, or wrong client IPs in logs.
How can I help you explore Laravel packages today?