Corrected issue with routing and CORS while running from the terminal

This commit is contained in:
Alex Tselegidis 2021-11-18 17:17:08 +01:00
parent 255d1b5d95
commit 81044eb9c6

View file

@ -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: *'); header('Access-Control-Allow-Origin: *');