From 6cc8ca9224b9c21038e9932ffdd8ebc7c0c149ed Mon Sep 17 00:00:00 2001 From: mikael-zakaria Date: Wed, 16 Jul 2025 10:00:02 +0700 Subject: [PATCH] Update File Custom Cors All Method - perbaikan routes.php --- app/Config/Routes.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Config/Routes.php b/app/Config/Routes.php index e5f3620..6791fe1 100644 --- a/app/Config/Routes.php +++ b/app/Config/Routes.php @@ -5,6 +5,9 @@ use CodeIgniter\Router\RouteCollection; /** * @var RouteCollection $routes */ +$routes->options('(:any)', function() { + return ''; +}); $routes->get('/', 'Home::index'); $routes->post('/auth/login/', 'Auth::login');