forked from miguel456/rbrecruiter
Trust Heroku proxies
This commit also forces the environment into HTTPS when in production.
This commit is contained in:
parent
0cf6208577
commit
94d08f1886
|
@ -12,12 +12,12 @@ class TrustProxies extends Middleware
|
|||
*
|
||||
* @var array|string
|
||||
*/
|
||||
protected $proxies;
|
||||
protected $proxies = "*";
|
||||
|
||||
/**
|
||||
* The headers that should be used to detect proxies.
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected $headers = Request::HEADER_X_FORWARDED_ALL;
|
||||
protected $headers = Request::HEADER_X_FORWARDED_AWS_ELB;
|
||||
}
|
||||
|
|
|
@ -33,5 +33,7 @@ class AppServiceProvider extends ServiceProvider
|
|||
|
||||
Schema::defaultStringLength(191);
|
||||
User::observe(UserObserver::class);
|
||||
|
||||
$this->app['request']->server->set('HTTPS', $this->app->environment() != 'local');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue