From c410f3feb610b90a875cf48bef65f3219dca48cf Mon Sep 17 00:00:00 2001 From: Neerholt Date: Mon, 10 Aug 2020 12:44:26 +0200 Subject: [PATCH] v0.5.16a - Fixed SSL bug --- skolehjem/app/Providers/AppServiceProvider.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/skolehjem/app/Providers/AppServiceProvider.php b/skolehjem/app/Providers/AppServiceProvider.php index 448f4e8..d97721b 100644 --- a/skolehjem/app/Providers/AppServiceProvider.php +++ b/skolehjem/app/Providers/AppServiceProvider.php @@ -23,6 +23,7 @@ class AppServiceProvider extends ServiceProvider */ public function boot() { - url()->forceScheme('https'); + if(env('HTTPS_ONLY') == true) + url()->forceScheme('https'); } }