如何在cloud9ide中使用http?
How to use http in cloud9 ide?
我用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 将 HTTPS 和 HTTP 流量路由到侦听 0.0.0.0:8080 的服务器。
因此,使用 HTTP 所需要做的就是在浏览器中使用 http://... 而不是 https://... :)
我用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 将 HTTPS 和 HTTP 流量路由到侦听 0.0.0.0:8080 的服务器。
因此,使用 HTTP 所需要做的就是在浏览器中使用 http://... 而不是 https://... :)