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 請求為什么會這樣,怎么處理這種情況
HTTPS請求被瀏覽器取消,并 被視作HTTP請求
互換的青春
2018-10-17 13:14:48