Update lang.blade.php
This commit is contained in:
parent
f62fa9aa69
commit
41f3173e25
|
@ -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");
|
||||||
|
|
Loading…
Reference in New Issue