Помогите кто нибудь пытаюсь делать кроссдоменный запрос:
<?
$post = array(
'navigator'=>'all',
'cat'=>'30',
'spm'=>'a21bp.8294655.banner_cat.143.eUVtcW',
'search_type'=>'0',
'_input_charset'=>'utf-8',
'json'=>'on',
'nid'=>'',
'abtest'=>'_AB-LR517-LR854-LR895-PR517-PR854-PR895',
'type'=>'',
'uniqpid'=>'',
'uniqpid'=>'',
'_ksTS'=>'1490278507514_27',
'callback'=>'__jsonp_cb',
'_ksTS'=>'1490278507514_27',
'cna'=>'h7C4EE/xFgsCAV OV4tMTBCf',
);
?>
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script>
$.ajax({
url: "//world.taobao.com/search/json.htm?<?=http_build_query($post)?>",
dataType: "text",
jsonpCallback: '__jsonp_cb',
success: function(data) {
alert(data);
}
});
</script>
Но выводит ошибку:
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed acces