Skip to content

Commit

Permalink
Fix force https for some reverse proxies
Browse files Browse the repository at this point in the history
  • Loading branch information
korridor committed Nov 12, 2024
1 parent 64b41e3 commit 2cf9b3a
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)) {
URL::forceScheme('https');
request()->server->set('HTTPS', 'on');
request()->server->set('X-Forward-Proto', 'https');
request()->headers->set('X-Forwarded-Proto', 'https');
}

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

0 comments on commit 2cf9b3a

Please sign in to comment.