在 HTTPS 页面内上传文件报错,七牛上传 URL 是写死的 HTTP ?
Mixed Content: The page at 'https://abc.com' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://upload.qiniu.com/'. This request has been blocked; the content must be served over HTTPS.
这个怎么解决?
好吧,自己回答一下,七牛最新 js-sdk 已经修复了这个问题,
https://github.com/qiniu/js-sdk/blob/master/src/qiniu.js