hotfix error
This commit is contained in:
parent
48feb920ce
commit
4f5dadfa53
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue