首页 >社区问答列表 >javascript - 七牛接口跨域

javascript - 七牛接口跨域

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)
    }
});