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