Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

jlelizalder's avatar

Where should I configure Trusted Proxies?

Hello there!

I am hessitant about where should I configure the trusted proxies for my Laravel 7.x application, should I do it on the vendor/fideloper/proxy/config/trustedproxy.php file (that looks precisely as a config file) or should I do it directly on the app/Http/Middleware/TrustedProxies.php?

Surely this is a dumb question but I cannot seem to find a clear answer about where should I change this configuration.

0 likes
2 replies

Please or to participate in this conversation.