Skip to content

Commit

Permalink
force app request to https
Browse files Browse the repository at this point in the history
  • Loading branch information
lao9s committed Jun 12, 2023
1 parent f02dcc8 commit fb85700
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/Providers/RouteServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ protected function configureUrlSchema():void
if(in_array($schema, ['http','https'])) {
URL::forceScheme($schema);
}

if($schema === 'https') {
$this->app['request']->server->set('HTTPS', true);
}
}
}

Expand Down

0 comments on commit fb85700

Please sign in to comment.