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' => [],