Update lang.blade.php

This commit is contained in:
Julian Prieber 2023-01-19 23:23:36 +01:00
parent f62fa9aa69
commit 41f3173e25
1 changed files with 1 additions and 0 deletions

View File

@ -8,6 +8,7 @@
{{-- Redirects to https if enabled in the advanced-config --}} {{-- Redirects to https if enabled in the advanced-config --}}
@if(env('FORCE_ROUTE_HTTPS') == 'true') @if(env('FORCE_ROUTE_HTTPS') == 'true')
@php @php
header("Content-Security-Policy: upgrade-insecure-requests");
if (! isset($_SERVER['HTTPS']) or $_SERVER['HTTPS'] == 'off' ) { if (! isset($_SERVER['HTTPS']) or $_SERVER['HTTPS'] == 'off' ) {
$redirect_url = "https://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; $redirect_url = "https://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
header("Location: $redirect_url"); header("Location: $redirect_url");