From bbfdea82d16248d18d4efac458a62818ecb88a1d Mon Sep 17 00:00:00 2001 From: Ruben Date: Thu, 3 Nov 2016 03:41:49 +0100 Subject: [PATCH] cors fix --- www/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/index.php b/www/index.php index 41e24f1..39a5328 100644 --- a/www/index.php +++ b/www/index.php @@ -22,7 +22,7 @@ if(ini_get('max_file_uploads') < 50) { } $http_origin = $_SERVER['HTTP_ORIGIN']; -if ($http_origin == "https://emotionhero.com" || $http_origin == "http://emotionhero.com") +if (strpos($http_origin, '/interface') && ($http_origin == "https://emotionhero.com" || $http_origin == "http://emotionhero.com")) { header("Access-Control-Allow-Origin: $http_origin"); // header("Access-Control-Allow-Origin: https://emotionhero.com");