Skip to content

Commit

Permalink
Fix check
Browse files Browse the repository at this point in the history
  • Loading branch information
henrist committed Jul 10, 2024
1 parent f7db5a6 commit 5f47068
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function register(): void
*/
public function boot(): void
{
if ($_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') {
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') {
URL::forceScheme('https');
}
}
Expand Down

0 comments on commit 5f47068

Please sign in to comment.