From ba38392c46dd6992b6865e714441df0ea54837e6 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Wed, 15 Dec 2021 07:31:05 +0100 Subject: [PATCH] Corrected validation check in routes.php file --- 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 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: *');