Skip to content

Commit

Permalink
Fix force HTTPS config
Browse files Browse the repository at this point in the history
  • Loading branch information
korridor committed Oct 16, 2024
1 parent 0290013 commit cdca19d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function boot(): void

if (config('app.force_https', false) || App::isProduction()) {
URL::forceScheme('https');
request()->server->set('HTTPS', request()->header('X-Forwarded-Proto', 'https') === 'https' ? 'on' : 'off');
request()->server->set('HTTPS', 'on');

Check warning on line 96 in app/Providers/AppServiceProvider.php

View check run for this annotation

Codecov / codecov/patch

app/Providers/AppServiceProvider.php#L96

Added line #L96 was not covered by tests
}

$this->app->scoped(PermissionStore::class, function (Application $app): PermissionStore {
Expand Down

0 comments on commit cdca19d

Please sign in to comment.