diff --git a/src/Api/InterfaceControllerProvider.php b/src/Api/InterfaceControllerProvider.php index 2b0237e..d382000 100644 --- a/src/Api/InterfaceControllerProvider.php +++ b/src/Api/InterfaceControllerProvider.php @@ -28,7 +28,7 @@ class InterfaceControllerProvider implements ControllerProviderInterface $controllers->get('/games/last', function (Application $app) { - $http_origin = $_SERVER['HTTP_ORIGIN']; + $http_origin = $_SERVER['HTTP_ORIGIN'] ?? null; if ($http_origin == "https://emotionhero.com" || $http_origin == "http://emotionhero.com") { header("Access-Control-Allow-Origin: $http_origin");