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 41f3173 commit 1863364Copy full SHA for 1863364
1 file changed
resources/views/layouts/lang.blade.php
@@ -1,4 +1,4 @@
1
-@if(env('FORCE_HTTPS') == 'true')<?php URL::forceScheme('https'); ?>@endif
+@if(env('FORCE_HTTPS') == 'true')<?php URL::forceScheme('https'); header("Content-Security-Policy: upgrade-insecure-requests"); ?>@endif
2
@if(env('CUSTOM_META_TAGS') == 'true' and config('advanced-config.lang') != '')
3
<html lang="{{ config('advanced-config.lang') }}">
4
@else
@@ -8,7 +8,6 @@
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