mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-04-02 20:51:03 +02:00
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 --}}
|
||||
@if(env('FORCE_ROUTE_HTTPS') == 'true')
|
||||
@php
|
||||
header("Content-Security-Policy: upgrade-insecure-requests");
|
||||
if (! isset($_SERVER['HTTPS']) or $_SERVER['HTTPS'] == 'off' ) {
|
||||
$redirect_url = "https://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
|
||||
header("Location: $redirect_url");
|
||||
|
Loading…
x
Reference in New Issue
Block a user