develop
Last change
on this file since 24a616f was 2fc88ec, checked in by beratkjufliju <kufliju@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
636 bytes
|
Rev | Line | |
---|
[2fc88ec] | 1 | <?php
|
---|
| 2 |
|
---|
| 3 | namespace App\Http\Middleware;
|
---|
| 4 |
|
---|
| 5 | use Illuminate\Http\Middleware\TrustProxies as Middleware;
|
---|
| 6 | use Illuminate\Http\Request;
|
---|
| 7 |
|
---|
| 8 | class TrustProxies extends Middleware
|
---|
| 9 | {
|
---|
| 10 | /**
|
---|
| 11 | * The trusted proxies for this application.
|
---|
| 12 | *
|
---|
| 13 | * @var array|string|null
|
---|
| 14 | */
|
---|
| 15 | protected $proxies;
|
---|
| 16 |
|
---|
| 17 | /**
|
---|
| 18 | * The headers that should be used to detect proxies.
|
---|
| 19 | *
|
---|
| 20 | * @var int
|
---|
| 21 | */
|
---|
| 22 | protected $headers =
|
---|
| 23 | Request::HEADER_X_FORWARDED_FOR |
|
---|
| 24 | Request::HEADER_X_FORWARDED_HOST |
|
---|
| 25 | Request::HEADER_X_FORWARDED_PORT |
|
---|
| 26 | Request::HEADER_X_FORWARDED_PROTO |
|
---|
| 27 | Request::HEADER_X_FORWARDED_AWS_ELB;
|
---|
| 28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.