Skip to content

Commit

Permalink
fix: configured trusted proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
pushpak1300 committed Dec 9, 2024
1 parent 588e3bb commit ccecb27
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@
use Illuminate\Foundation\Configuration\Exceptions;
use Illuminate\Foundation\Configuration\Middleware;
use Illuminate\Http\Middleware\AddLinkHeadersForPreloadedAssets;
use Illuminate\Http\Request;

return Application::configure(basePath: dirname(__DIR__))
->withRouting(
web: __DIR__.'/../routes/web.php',
api: __DIR__.'/../routes/api.php',
web: __DIR__ . '/../routes/web.php',
api: __DIR__ . '/../routes/api.php',
health: '/up',
)
->withMiddleware(function (Middleware $middleware): void {
Expand All @@ -24,6 +25,7 @@
'stripe/*',
'prism/*',
]);
$middleware->trustProxies(at: '*');
})
->withExceptions(function (Exceptions $exceptions): void {
Integration::handles($exceptions); // Intgrate Sentry with Application
Expand Down

0 comments on commit ccecb27

Please sign in to comment.