Skip to content

Commit

Permalink
fix trustproxies error
Browse files Browse the repository at this point in the history
  • Loading branch information
mlabate committed Apr 6, 2021
1 parent 4224bb1 commit 1dac723
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/Http/Middleware/TrustProxies.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@ class TrustProxies extends Middleware
*
* @var array
*/
protected $headers = [
/*protected $headers = [
Request::HEADER_FORWARDED => 'FORWARDED',
Request::HEADER_X_FORWARDED_FOR => 'X_FORWARDED_FOR',
Request::HEADER_X_FORWARDED_HOST => 'X_FORWARDED_HOST',
Request::HEADER_X_FORWARDED_PORT => 'X_FORWARDED_PORT',
Request::HEADER_X_FORWARDED_PROTO => 'X_FORWARDED_PROTO',
];
];*/
protected $headers = Request::HEADER_X_FORWARDED_ALL;

}

0 comments on commit 1dac723

Please sign in to comment.