File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 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
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" );
1211if (! isset ($_SERVER [' HTTPS' ]) or $_SERVER [' HTTPS' ] == ' off' ) {
1312 $redirect_url = " https://" . $_SERVER [' HTTP_HOST' ] . $_SERVER [' REQUEST_URI' ];
1413 header (" Location: $redirect_url " );
You can’t perform that action at this time.
0 commit comments