hotfix error

This commit is contained in:
Ruben 2016-11-03 18:07:07 +01:00
parent 48feb920ce
commit 4f5dadfa53

View file

@ -28,7 +28,7 @@ class InterfaceControllerProvider implements ControllerProviderInterface
$controllers->get('/games/last', function (Application $app) { $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") if ($http_origin == "https://emotionhero.com" || $http_origin == "http://emotionhero.com")
{ {
header("Access-Control-Allow-Origin: $http_origin"); header("Access-Control-Allow-Origin: $http_origin");