From 81044eb9c6cfdfc2ab07c0610682016ae076893b Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Thu, 18 Nov 2021 17:17:08 +0100 Subject: [PATCH] Corrected issue with routing and CORS while running from the terminal --- application/config/routes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: *');