文章详情页
javascript - 七牛接口跨域
浏览:172日期: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. css - 文字排版问题,内容都是动态抓出来的,字数不一定。如何对齐啊2. git - 在web应用分布式部署的情况下怎么进行配置更新3. css3 - 微信前端页面遇到的transition过渡动画的bug4. 网页爬虫 - 关于Python的编码与解码问题5. 前端 - WebStrom安装了angularjs插件,但是没有语法提示6. 微信开放平台 - ios APP能不能打开微信然后通过微信跳转到指定的URL?7. selenium-selenium-webdriver - python 将当前目录加入到 环境变量8. css - input间的间距和文字上下居中9. javascript - imgzoom插件所引发的bug血案!!!!10. php ZipArchive关于不同目录文件压缩
排行榜

网公网安备