FIX_OPTIONS_ROUTE_ADDED4_CORS

This commit is contained in:
velz 2025-11-25 15:05:21 +05:30
parent 69fe539a3d
commit 30ffd7648c

View File

@ -3,6 +3,14 @@
use CodeIgniter\Router\RouteCollection;
// Allow OPTIONS for all routes
$routes->options('(:any)', function() {
// This will never be called because the CORS filter returns early
// But having this route ensures OPTIONS isn't rejected as 404
});
/**
* @var RouteCollection $routes
*/