七牛接口跨域

新手上路,请多包涵

XMLHttpRequest cannot load http://api.qiniu.com/status/g... No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://192.168.1.54:8080' is therefore not allowed access.

$.ajax({

    url:'http://api.qiniu.com/status/get/prefop?id=z0.5923a37345a2650c9977c17e',
    type:"GET",
    dataType:"json",
    success:function(data){
        console.log(data)
    }
});
阅读 2.7k
1 个回答

dataType: 'jsonp'

jquery jsonp跨域

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题