Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F9787743
TrustProxies.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
746 B
Referenced Files
None
Subscribers
None
TrustProxies.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
R2 kolab
Attached
Detach File
Event Timeline
Log In to Comment