Allow trusted proxy via APP_TRUSTED_PROXIES (#9196)

* Allow trusted proxy via APP_TRUSTED_PROXIES
Set to '*' by default to emulate legacy behavior.
Set up doc describing environment variables

* Create helper to parse environment variables into arrays properly.

* Update doc blocks
This commit is contained in:
Tony Murray
2018-09-13 07:26:42 -05:00
committed by GitHub
parent c222d0e516
commit 79333c45f6
12 changed files with 271 additions and 5 deletions

View File

@@ -19,6 +19,7 @@ class Kernel extends HttpKernel
\Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
\App\Http\Middleware\TrimStrings::class,
\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
\Fideloper\Proxy\TrustProxies::class,
];
/**