diff --git a/config/trustedproxy.php b/config/trustedproxy.php index bde40fc7e..04e90ac2d 100644 --- a/config/trustedproxy.php +++ b/config/trustedproxy.php @@ -33,7 +33,8 @@ return [ * how many proxies that client's request has * subsequently passed through. */ - 'proxies' => null, // [,], '*' + 'proxies' => env('APP_TRUSTED_PROXIES') !== null ? + explode(',', env('APP_TRUSTED_PROXIES')) : '*', /* * To trust one or more specific proxies that connect