javascript - OpenWeather API 错误

标签 javascript html api http p5.js

我制作了一个使用 p5.js 的天气预报网络应用程序。它在我的本地主机上完美运行。为什么这个问题不断出现在 github 页面上:

Mixed Content: The page at '' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint ''. This request has been blocked; the content must be served over HTTPS.

github:https://github.com/VlatkoStojkoski/OpenWeather-API

github页面:https://vlatkostojkoski.github.io/OpenWeather-API/

最佳答案

问题在于 GitHub 页面正在加载使用 http 连接而不是所需的 https 连接的 API 请求。尝试通过安全连接访问 API 服务器,它应该可以工作。

关于javascript - OpenWeather API 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52343365/

相关文章:

javascript - 第一次点击后更改按钮 onclick

javascript - 使用 MouseOver 和 MouseOut

html - 超轻型 YouTube 播放器

html - ie7 内联 block 技巧似乎不起作用

iphone - Mobile Safari - iPhone 上的文章、文本和图像模糊

arrays - 如何在 Node Express api 中接受不同的 xml 格式?

javascript - 如何使用 Angular 从用户那里检索地理位置

javascript - Google Places API 地点类型问题

javascript - 如何使用 JavaScript 在屏幕上移动两个不同的图像

javascript - Unicode 文本转换为十进制- Blogger