我正在尝试从https://developer.yahoo.com/weather/#js实施基本的Yahoo weather API JS示例
在Chrome版本70中,我收到以下警告:
HTTP-Based Public Key Pinning is deprecated. Chrome 69 and later will ignore HPKP response headers. (Host: query.yahooapis.com)
还有另一种方法需要使用API来避免此警告?我也尝试过这样,但是我得到了同样的警告
fetch("https://query.yahooapis.com/v1/public/yql?q=select wind from weather.forecast where woeid in (select woeid from geo.places(1) where text='chicago, il')&format=json")
.then(response => {
response.json().then(data => {
console.log(JSON.stringify(data))
})
})