文章详情页
javascript - 七牛接口跨域
浏览:122日期:2023-03-07 16:47:49
问题描述
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) }});
问题解答
回答1:dataType: ’jsonp’
jquery jsonp跨域
标签:
JavaScript
相关文章:
1. html5 - SVG怎么画这种环状的音量?2. java - word如何显示base64图片 ?3. javascript - 为什么form表单提交没有跨域问题,但ajax提交有跨域问题?4. html - 请问这是为何5. java - 如何在同一个输入框中实现用户名或Email登录呢?6. javascript - js的string数据类型,这段表述是什么意思?7. html5 - 微信退出程序,存储和Cookie会丢失8. javascript - requestAnimationFrame如何控制帧速?9. python - 如何找第三方编译好的模块?10. javascript - jquery hide()方法无效
排行榜
