【问题标题】:Blocked loading mixed active content over http阻止通过 http 加载混合的活动内容
【发布时间】:2017-05-12 10:38:10
【问题描述】:

我正在通过https 运行我的网站,我正在尝试调用 http 上的 API 我尝试的是:

//api.openweathermap.org/data/2.5/weather http://api.openweathermap.org/data/2.5/weather

但没有成功,请您建议一下。

【问题讨论】:

    标签: php https http-headers mixed-content


    【解决方案1】:

    此 API 似乎不支持 HTTPS。来自 OpenWeatherMap 论坛上的this question

    HTTPS 仅在 Professional 和 Enterprise 帐户中可用。在免费帐户中,此功能不可用。

    请参阅另一篇 SO 帖子中的 this answer,其中 API 调用在外部进行并单独提供。

    【讨论】:

      猜你喜欢
      • 2014-01-03
      • 1970-01-01
      • 2017-01-23
      • 2015-12-12
      • 2018-07-30
      • 1970-01-01
      • 1970-01-01
      • 2018-12-04
      • 2015-10-11
      相关资源
      最近更新 更多