cors fix
This commit is contained in:
parent
78c3a4eff2
commit
bbfdea82d1
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ if(ini_get('max_file_uploads') < 50) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$http_origin = $_SERVER['HTTP_ORIGIN'];
|
$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: $http_origin");
|
||||||
// header("Access-Control-Allow-Origin: https://emotionhero.com");
|
// header("Access-Control-Allow-Origin: https://emotionhero.com");
|
||||||
|
|
Loading…
Reference in a new issue