【问题标题】:How to use http in cloud9 ide?如何在cloud9 ide中使用http?
【发布时间】:2016-03-21 14:06:42
【问题描述】:

我使用python manage.py runserver $IP:$PORT,然后启动this page。如您所见,clound9 使用 https,这会导致一个问题 - 某些 css 或 js 文件无法通过 http 从其他站点加载。

浏览器控制台显示:

Mixed Content: The page at 'https://py3-pronan.c9users.io/' was loaded over HTTPS, but requested an insecure stylesheet 'http://fortawesome.github.io/Font-Awesome/assets/font-awesome/css/font-awesome.min.css'. This request has been blocked; the content must be served over HTTPS.

这个网站没什么特别的,我对http完全没问题,那么有没有办法配置cloud9 ide使用http?

【问题讨论】:

    标签: cloud9-ide


    【解决方案1】:

    Cloud9 将 HTTPS HTTP 流量路由到您在 0.0.0.0:8080 上侦听的服务器。

    因此,使用 HTTP 只需在浏览器中使用 http://... 而不是 https://... :)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-03-08
      • 1970-01-01
      • 1970-01-01
      • 2016-02-22
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多