HTTP-Based Public Key Pinning is deprecated warning when using Yahoo Weather API

痴心易碎 提交于 2019-12-11 10:16:37

问题


I'm trying to implement the basic Yahoo weather API JS example from https://developer.yahoo.com/weather/#js

In chrome version 70, I'm getting the following warning:

HTTP-Based Public Key Pinning is deprecated. Chrome 69 and later will ignore HPKP response headers. (Host: query.yahooapis.com)

Is there another way I need to consume the API to avoid this warning? I've also tried like this but I got the same warning

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)) }) })

来源:https://stackoverflow.com/questions/53184374/http-based-public-key-pinning-is-deprecated-warning-when-using-yahoo-weather-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!