Skip to content

Commit 1863364

Browse files
committed
Update lang.blade.php
1 parent 41f3173 commit 1863364

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

resources/views/layouts/lang.blade.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@if(env('FORCE_HTTPS') == 'true')<?php URL::forceScheme('https'); ?>@endif
1+
@if(env('FORCE_HTTPS') == 'true')<?php URL::forceScheme('https'); header("Content-Security-Policy: upgrade-insecure-requests"); ?>@endif
22
@if(env('CUSTOM_META_TAGS') == 'true' and config('advanced-config.lang') != '')
33
<html lang="{{ config('advanced-config.lang') }}">
44
@else
@@ -8,7 +8,6 @@
88
{{-- Redirects to https if enabled in the advanced-config --}}
99
@if(env('FORCE_ROUTE_HTTPS') == 'true')
1010
@php
11-
header("Content-Security-Policy: upgrade-insecure-requests");
1211
if (! isset($_SERVER['HTTPS']) or $_SERVER['HTTPS'] == 'off' ) {
1312
$redirect_url = "https://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
1413
header("Location: $redirect_url");

0 commit comments

Comments
 (0)