文章詳情頁
javascript - 七牛接口跨域
瀏覽:107日期: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跨域
標(biāo)簽:
JavaScript
相關(guān)文章:
1. mysql - 我用SQL語句 更新 行的時候,發(fā)現(xiàn)全部 中文都被清空了,請問怎么解決?2. 導(dǎo)入項目之后登錄界面驗證碼彈不出來3. phpStudy2017輕巧版mysql無法啟動4. mysql 優(yōu)化之性別優(yōu)化5. 關(guān)于phpstudy設(shè)置主從數(shù)據(jù)庫6. python3.x - python3.5使用pyinstaller打包報錯找不到libpython3.5mu.so.1.0等文件求解?7. mysql 字段索引的問題8. MySQL在什么情況下會被堵死?9. 為什么我寫的PHP不行10. 為什么我輸入了refresh不會跳轉(zhuǎn)?請教大神支招!
排行榜

熱門標(biāo)簽