Removed CORS headers (added by accident in previous commit)
This commit is contained in:
parent
ee004fd2d0
commit
cb944de118
|
@ -7,8 +7,6 @@
|
||||||
error_reporting(0);
|
error_reporting(0);
|
||||||
$ip = "";
|
$ip = "";
|
||||||
header('Content-Type: application/json; charset=utf-8');
|
header('Content-Type: application/json; charset=utf-8');
|
||||||
header('Access-Control-Allow-Origin: *');
|
|
||||||
header('Access-Control-Allow-Methods: GET, POST');
|
|
||||||
if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
|
if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
|
||||||
$ip = $_SERVER['HTTP_CLIENT_IP'];
|
$ip = $_SERVER['HTTP_CLIENT_IP'];
|
||||||
} elseif (!empty($_SERVER['X-Real-IP'])) {
|
} elseif (!empty($_SERVER['X-Real-IP'])) {
|
||||||
|
|
Loading…
Reference in a new issue