我尝试从https://api.openweathermap.org API获取天气信息,但收到错误无法加载资源:net :: ERR_CONNECTION_REFUSED在浏览器控制台上.. 在我的小提琴下...... https://jsfiddle.net/rahulchavan888/qvm7f8m4/
我使用https但是当我仅使用http的API时出现错误:
Mixed Content: The page at https://jsfiddle.net/rahulchavan888/qvm7f8m4/ was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint http://api.openweathermap.org/data/2.5/weather?q=pune&APPID=eb46db75dae051cb28fe9ca0c1e8ec15". This request has been blocked; the content must be served over HTTPS.
请尝试解决我的问题..谢谢