cors fix
This commit is contained in:
parent
a332e89b13
commit
78c3a4eff2
1 changed files with 9 additions and 9 deletions
|
@ -21,15 +21,15 @@ if(ini_get('max_file_uploads') < 50) {
|
|||
throw new Exception("php directive 'max_file_uploads' should be >= 50");
|
||||
}
|
||||
|
||||
// $http_origin = $_SERVER['HTTP_ORIGIN'];
|
||||
// if ($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");
|
||||
// header("Access-Control-Allow-Methods: POST, GET, OPTIONS");
|
||||
// header("Access-Control-Allow-Headers: X-PINGOTHER");
|
||||
// header("Access-Control-Max-Age: 1728000");
|
||||
// }
|
||||
$http_origin = $_SERVER['HTTP_ORIGIN'];
|
||||
if ($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");
|
||||
header("Access-Control-Allow-Methods: POST, GET, OPTIONS");
|
||||
header("Access-Control-Allow-Headers: X-PINGOTHER");
|
||||
header("Access-Control-Max-Age: 1728000");
|
||||
}
|
||||
|
||||
/*
|
||||
* JWT setup
|
||||
|
|
Loading…
Reference in a new issue