Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix

Andras Bacsai19cefd9718c2
diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.php
index 30774be238..57fa14c27d 100644
--- a/bootstrap/helpers/shared.php
+++ b/bootstrap/helpers/shared.php
@@ -6,10 +6,6 @@ use Illuminate\Support\Facades\Route;
use Visus\Cuid2\Cuid2;
use Illuminate\Support\Str;
-function is_https()
-{
- return request()->secure();
-}
function general_error_handler(\Throwable $e, $that = null, $isJson = false)
{
try {
diff --git a/resources/views/components/layout.blade.php b/resources/views/components/layout.blade.php
index 0e3fcb53ff..e8af856454 100644
--- a/resources/views/components/layout.blade.php
+++ b/resources/views/components/layout.blade.php
@@ -8,6 +8,8 @@
<link href="https://api.fonts.coollabs.io/css2?family=Inter&display=swap" rel="stylesheet">
@if (request()->secure())
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
+ @else
+ http {{ request()->secure() }}
@endif
@env('local')
<title>Coolify - localhost</title>