Trust Heroku proxies
This commit also forces the environment into HTTPS when in production.
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user