Skip to content

Instantly share code, notes, and snippets.

@amardeep18
Created September 12, 2020 07:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amardeep18/273ef2103205c8754df1475af595aa95 to your computer and use it in GitHub Desktop.
Save amardeep18/273ef2103205c8754df1475af595aa95 to your computer and use it in GitHub Desktop.
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