Add Access-Control-Allow-Origin
This commit is contained in:
parent
597fdeea8c
commit
cb28686de3
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
$webApiVersion = '0.2.2';
|
$webApiVersion = '0.2.3';
|
||||||
|
|
||||||
function sendResponse($apiResponse) {
|
function sendResponse($apiResponse) {
|
||||||
global $webApiVersion;
|
global $webApiVersion;
|
||||||
@ -9,5 +9,6 @@ function sendResponse($apiResponse) {
|
|||||||
'jsonApiVersion' => $webApiVersion,
|
'jsonApiVersion' => $webApiVersion,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
header('Access-Control-Allow-Origin: *');
|
||||||
echo json_encode($response)."\n";
|
echo json_encode($response)."\n";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user