Skip to content

Commit 41f3173

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

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

resources/views/layouts/lang.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
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");
1112
if (! isset($_SERVER['HTTPS']) or $_SERVER['HTTPS'] == 'off' ) {
1213
$redirect_url = "https://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
1314
header("Location: $redirect_url");

0 commit comments

Comments
 (0)