Corrected validation check in routes.php file

This commit is contained in:
Alex Tselegidis 2021-12-15 07:31:05 +01:00
parent c8bd47d1e5
commit ba38392c46

View file

@ -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: *');