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