Spaces:
Sleeping
Sleeping
Download app/Http/Middleware/TrustProxies.php from Anuj-Panthri/Learn-Guide: direct link, hf CLI and curl.
- Browser
- Download file 649 Bytes
-
https://huggingface.co/spaces/Anuj-Panthri/Learn-Guide/resolve/main/app/Http/Middleware/TrustProxies.php
- Command line
-
hf download hf://spaces/Anuj-Panthri/Learn-Guide/app/Http/Middleware/TrustProxies.php
-
curl -L -o TrustProxies.php https://huggingface.co/spaces/Anuj-Panthri/Learn-Guide/resolve/main/app/Http/Middleware/TrustProxies.php
649 Bytes
| namespace App\Http\Middleware; | |
| use Illuminate\Http\Middleware\TrustProxies as Middleware; | |
| use Illuminate\Http\Request; | |
| class TrustProxies extends Middleware | |
| { | |
| /** | |
| * The trusted proxies for this application. | |
| * | |
| * @var array<int, string>|string|null | |
| */ | |
| protected $proxies; | |
| /** | |
| * The headers that should be used to detect proxies. | |
| * | |
| * @var int | |
| */ | |
| protected $headers = | |
| Request::HEADER_X_FORWARDED_FOR | | |
| Request::HEADER_X_FORWARDED_HOST | | |
| Request::HEADER_X_FORWARDED_PORT | | |
| Request::HEADER_X_FORWARDED_PROTO | | |
| Request::HEADER_X_FORWARDED_AWS_ELB; | |
| } | |