摘要:
客户端请求 $.ajax({ type:"post", url:urlstr, dataType:'json', async:true, headers:{token:'abck'}, success:function (data) { console.log(data.info); console 阅读全文
posted @ 2016-10-11 17:51
向着太阳生
阅读(12241)
评论(0)
推荐(0)
摘要:
通过在服务器端设置请求头的源可以实现跨域 public function test_ajax() { header("Access-Control-Allow-Origin: http://127.0.0.1:63851"); $arr = getallheaders(); foreach($arr 阅读全文
posted @ 2016-10-11 17:34
向着太阳生
阅读(7348)
评论(0)
推荐(0)

浙公网安备 33010602011771号