From a64146e227681fce4eb48436a6cd94cb2d786a34 Mon Sep 17 00:00:00 2001 From: Giovanni-Josserand Date: Sat, 31 Jan 2026 17:56:34 +0100 Subject: [PATCH] test --- config/cors.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/config/cors.php b/config/cors.php index 7e8c78f..64974b3 100644 --- a/config/cors.php +++ b/config/cors.php @@ -17,11 +17,9 @@ return [ 'paths' => ['api/*', 'sanctum/csrf-cookie'], - 'allowed_methods' => ['*'], + 'allowed_methods' => ['GET'], - 'allowed_origins' => env('DEV', false) - ? ['http://localhost:5173', 'http://localhost:5174', 'http://localhost', 'http://localhost:80'] - : [env('APP_URL', 'http://localhost')], + 'allowed_origins' => ['http://localhost:5173'], 'allowed_origins_patterns' => [],