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
2
2
@if (env (' CUSTOM_META_TAGS' ) == ' true' and config (' advanced-config.lang' ) != ' ' )
3
3
<html lang =" {{ config (' advanced-config.lang' ) } }" >
4
4
@else
8
8
{{-- Redirects to https if enabled in the advanced-config --}}
9
9
@if (env (' FORCE_ROUTE_HTTPS' ) == ' true' )
10
10
@php
11
- header (" Content-Security-Policy: upgrade-insecure-requests" );
12
11
if (! isset ($_SERVER [' HTTPS' ]) or $_SERVER [' HTTPS' ] == ' off' ) {
13
12
$redirect_url = " https://" . $_SERVER [' HTTP_HOST' ] . $_SERVER [' REQUEST_URI' ];
14
13
header (" Location: $redirect_url " );
You can’t perform that action at this time.
0 commit comments