diff --git a/application/config/routes.php b/application/config/routes.php index 9c9c0950..a8c3a4f6 100644 --- a/application/config/routes.php +++ b/application/config/routes.php @@ -66,7 +66,7 @@ $route['translate_uri_dashes'] = FALSE; | */ -if (isset($_SERVER) && $_SERVER['REQUEST_METHOD'] === 'OPTIONS') +if (isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] === 'OPTIONS') { header('Access-Control-Allow-Origin: *');