Add CORS header to API

pull/3/head
Skylar Ittner 5 年前
父節點 7173a50c36
當前提交 7d30251cd6

@ -10,6 +10,8 @@ require __DIR__ . '/../required.php';
require __DIR__ . '/functions.php';
require __DIR__ . '/apisettings.php';
header("Access-Control-Allow-Origin: *");
$VARS = $_GET;
if ($_SERVER['REQUEST_METHOD'] != "GET") {
$VARS = array_merge($VARS, $_POST);

載入中…
取消
儲存