diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index dc499004e..5b6f2c2d0 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -18,6 +18,11 @@ public function boot() if ($this->app->runningUnitTests()) { Schema::defaultStringLength(191); } + + if (substr( env('APP_URL'), 0, 8 ) === "https://") { + \Illuminate\Support\Facades\URL::forceScheme('https'); + } + $this->bootLibretextsSocialite(); /* \DB::listen(function ($query) { \Log::debug($query->sql);