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.
X-Forwarded-For handling).Adopt if:
X-Forwarded-* parsing).url() helper, redirects) behind proxies.Look elsewhere if:
For Executives: *"This package solves a critical but invisible problem: ensuring our Laravel app correctly identifies real users and secure connections when traffic flows through proxies like Cloudflare or AWS. Without it, we risk:
For Engineering Teams: *"fideloper/proxy is the de facto standard for Laravel proxy handling (7K+ stars, used by Laravel itself). Key wins:
X-Forwarded-* logic with one config file.http:// redirects on https:// sites.How can I help you explore Laravel packages today?