cors fix
This commit is contained in:
parent
a070677dd9
commit
ba79685275
1 changed files with 1 additions and 1 deletions
|
@ -25,11 +25,11 @@ $http_origin = $_SERVER['HTTP_ORIGIN'];
|
||||||
if ($http_origin == "https://emotionhero.com" || $http_origin == "http://emotionhero.com")
|
if ($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");
|
||||||
header("Access-Control-Allow-Methods: POST, GET, OPTIONS");
|
header("Access-Control-Allow-Methods: POST, GET, OPTIONS");
|
||||||
header("Access-Control-Allow-Headers: X-PINGOTHER");
|
header("Access-Control-Allow-Headers: X-PINGOTHER");
|
||||||
header("Access-Control-Max-Age: 1728000");
|
header("Access-Control-Max-Age: 1728000");
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* JWT setup
|
* JWT setup
|
||||||
|
|
Loading…
Reference in a new issue