Laravel 5.6

This commit is contained in:
shibafu
2020-05-23 20:32:24 +09:00
parent 3a05d2c9cc
commit 015bcaa563
18 changed files with 1200 additions and 906 deletions

View File

@@ -15,15 +15,9 @@ class TrustProxies extends Middleware
protected $proxies = '**';
/**
* The current proxy header mappings.
* The headers that should be used to detect proxies.
*
* @var array
* @var int
*/
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;
}