Page MenuHomePhorge

TrustProxies.php
No OneTemporary

Size
746 B
Referenced Files
None
Subscribers
None

TrustProxies.php

<?php
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 = [
'10.0.0.0/8',
'127.0.0.1/8',
'172.16.0.0/12',
'192.168.0.0/16'
];
/**
* 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;
}

File Metadata

Mime Type
text/x-php
Expires
Tue, Aug 18, 7:17 AM (1 d, 2 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1262169
Default Alt Text
TrustProxies.php (746 B)

Event Timeline