Add Access-Control-Allow-Origin

This commit is contained in:
Kaenbyou Rin 2023-11-20 23:29:48 +01:00
parent 597fdeea8c
commit cb28686de3

View File

@ -1,5 +1,5 @@
<?php
$webApiVersion = '0.2.2';
$webApiVersion = '0.2.3';
function sendResponse($apiResponse) {
global $webApiVersion;
@ -9,5 +9,6 @@ function sendResponse($apiResponse) {
'jsonApiVersion' => $webApiVersion,
];
header('Access-Control-Allow-Origin: *');
echo json_encode($response)."\n";
}