Laravel 8 - 可信代理在“fideloper/TrustedProxy”和“TrustProxies Middleware”之间感到困惑

问题描述

我需要实现可信代理,但我对 PHPfideloper/TrustedProxy (https://github.com/fideloper/TrustedProxy) 和 app/Http/Middleware/TrustedProxies.PHP 中间件 (https://laravel.com/docs/8.x/requests#configuring-trusted-proxies) 感到困惑

我注意到 fideloper/TrustedProxy 包在 composer.json 中;但是我可以只用一个吗?它们是多余的吗?

感谢您的澄清

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)