hotfix error

This commit is contained in:
Ruben 2016-11-03 18:07:07 +01:00
parent 48feb920ce
commit 4f5dadfa53
1 changed files with 1 additions and 1 deletions

View File

@ -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");