Created
November 25, 2019 18:10
-
-
Save morrislaptop/f12cc86b8a6dea4fca23787f79c95918 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Middleware; | |
use Fideloper\Proxy\TrustProxies as Middleware; | |
use Illuminate\Http\Request; | |
class TrustProxies extends Middleware | |
{ | |
/** | |
* The trusted proxies for this application. | |
* | |
* @var array|string | |
*/ | |
protected $proxies = '*'; | |
/** | |
* The headers that should be used to detect proxies. | |
* | |
* @var int | |
*/ | |
protected $headers = Request::HEADER_X_FORWARDED_AWS_ELB; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment