[ad_1]
function add_cors_http_header(){
header("Access-Control-Allow-Origin: *");
}
add_action('init','add_cors_http_header');
Add this code to your theme functions.php
Or
In the file located in wp-content/plugins/json-api/singletons/api.php, add following line:
<? header("Access-Control-Allow-Origin: *"); ?>