fetch('https://vanishingdante.github.io/gh-pages-blog-api/2017/02/11/bye-world')
.then(resp => resp.json())
.then(json => console.log(json))
我用 fetch api 尝试从我的 gh-pages 获取 json 数据 (gh-pages Access-Control-Allow-Origi 的 为 *)
但是我得到的是这个
然后我检查了一下 Chrome devtool 的 Network 
我的 HTTPS 请求被浏览器取消,并且该次请求被视作一次 HTTP 请求
为什么会这样,怎么处理这种情况
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
小伙看你根骨奇佳,潜力无限,来学PHP伐。