From c477d879e805d8ab80a91411d4e8dd3ba9986ab4 Mon Sep 17 00:00:00 2001 From: Bubka <858858+Bubka@users.noreply.github.com> Date: Mon, 10 Mar 2025 17:58:11 +0100 Subject: [PATCH] Fallback url generation to the secured scheme in blade views --- resources/views/health.blade.php | 2 +- resources/views/landing.blade.php | 2 +- tests/Feature/ViewTest.php | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/resources/views/health.blade.php b/resources/views/health.blade.php index c6e256f3..11ceef26 100644 --- a/resources/views/health.blade.php +++ b/resources/views/health.blade.php @@ -5,7 +5,7 @@ {{ config('app.name', 'Laravel') }} - +
diff --git a/resources/views/landing.blade.php b/resources/views/landing.blade.php index b3389e68..996045dd 100644 --- a/resources/views/landing.blade.php +++ b/resources/views/landing.blade.php @@ -15,7 +15,7 @@ - + diff --git a/tests/Feature/ViewTest.php b/tests/Feature/ViewTest.php index 2c0cf149..b78b3ab9 100644 --- a/tests/Feature/ViewTest.php +++ b/tests/Feature/ViewTest.php @@ -40,12 +40,15 @@ class ViewTest extends FeatureTestCase $response->assertViewHas('appSettings'); $response->assertViewHas('appConfig'); + $response->assertViewHas('urls'); $response->assertViewHas('defaultPreferences'); $response->assertViewHas('subdirectory'); $response->assertViewHas('isDemoApp'); $response->assertViewHas('isTestingApp'); $response->assertViewHas('lang'); $response->assertViewHas('locales'); + $response->assertViewHas('cspNonce'); + $response->assertViewHas('isSecure'); } #[Test]