javascript - Qiniu interface cross-domain
phpcn_u1582
phpcn_u1582 2017-07-05 10:55:11
0
1
838

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_u1582
phpcn_u1582

reply all(1)
漂亮男人

dataType: 'jsonp'

jquery jsonp cross domain

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template