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
1 changed files with 1 additions and 1 deletions

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