Skip to content

Commit

Permalink
refactor(layout): Remove redundant HTTPS and Content Security Policy …
Browse files Browse the repository at this point in the history
…checks
  • Loading branch information
andrasbacsai committed Mar 5, 2025
1 parent f2a90ea commit edfdda2
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions resources/views/layouts/inertia.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@

@use('App\Models\InstanceSettings')
@php
$instanceSettings = instanceSettings();
$isHttps = str(request()->url())->startsWith('https');
$name = null;
if ($instanceSettings) {
Expand All @@ -20,9 +17,6 @@

<head>
<meta charset="utf-8">
@if ($isHttps)
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
@endif
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="robots" content="noindex">
<meta name="theme-color" content="#ffffff" />
Expand Down

0 comments on commit edfdda2

Please sign in to comment.