From 5f47068151a9b840e811d306fd5a4a0435745d51 Mon Sep 17 00:00:00 2001 From: Henrik Steen Date: Thu, 11 Jul 2024 00:57:41 +0200 Subject: [PATCH] Fix check --- backend/app/Providers/AppServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/Providers/AppServiceProvider.php b/backend/app/Providers/AppServiceProvider.php index e29439f1..2c001e10 100644 --- a/backend/app/Providers/AppServiceProvider.php +++ b/backend/app/Providers/AppServiceProvider.php @@ -20,7 +20,7 @@ public function register(): void */ public function boot(): void { - if ($_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') { + if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') { URL::forceScheme('https'); } }