Trust Heroku proxies

This commit also forces the environment into HTTPS when in production.
This commit is contained in:
2020-07-18 06:33:00 +01:00
parent 0cf6208577
commit 94d08f1886
2 changed files with 4 additions and 2 deletions

View File

@@ -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');
}
}