search

Home  >  Q&A  >  body text

javascript - Qiniu interface cross-domain

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)
    }
});
phpcn_u1582phpcn_u15822690 days ago843

reply all(1)I'll reply

  • 漂亮男人

    漂亮男人2017-07-05 10:57:11

    dataType: 'jsonp'

    jquery jsonp cross domain

    reply
    0
  • Cancelreply