We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f62fa9a commit 41f3173Copy full SHA for 41f3173
resources/views/layouts/lang.blade.php
@@ -8,6 +8,7 @@
8
{{-- Redirects to https if enabled in the advanced-config --}}
9
@if(env('FORCE_ROUTE_HTTPS') == 'true')
10
@php
11
+header("Content-Security-Policy: upgrade-insecure-requests");
12
if (! isset($_SERVER['HTTPS']) or $_SERVER['HTTPS'] == 'off' ) {
13
$redirect_url = "https://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
14
header("Location: $redirect_url");
0 commit comments