From 62afd2f9d6c6a6ebfd285705aaa6f7c563ab893e Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Sat, 9 May 2026 23:15:11 +0300 Subject: [PATCH] add cors middleware --- backend/bootstrap/app.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/bootstrap/app.php b/backend/bootstrap/app.php index c3928c5..7c7ee62 100644 --- a/backend/bootstrap/app.php +++ b/backend/bootstrap/app.php @@ -3,6 +3,7 @@ use Illuminate\Foundation\Application; use Illuminate\Foundation\Configuration\Exceptions; use Illuminate\Foundation\Configuration\Middleware; +use Illuminate\Http\Middleware\HandleCors; return Application::configure(basePath: dirname(__DIR__)) ->withRouting( @@ -12,7 +13,7 @@ return Application::configure(basePath: dirname(__DIR__)) health: '/up', ) ->withMiddleware(function (Middleware $middleware): void { - // + $middleware->append(HandleCors::class); }) ->withExceptions(function (Exceptions $exceptions): void { //