我在cloud9上运行了我的流星应用程序。我安装了AdminLTE。当我在本地主机上运行这个应用程序时,一切都很好。运行在cloud9-IDE上,我得到与AdminLTE包相关的以下浏览器错误:
Mixed Content: The page at 'https://app-user.c9users.io/'
was loaded over HTTPS, but requested an insecure stylesheet
'http://0.0.0.0:8080/packages/mfactory_admin-lte/css/AdminLTE.min.css'.
This request has been blocked; the content must be served over HTTPS.
'http://0.0.0.0:8080/packages/mfactory_admin-lte/css/skins/skin-green.min.css'.
This request has been blocked; the content must be served over HTTPS.
我该怎么纠正呢?我在与通过https访问http有关的某个地方出现了红色。谈到https,我有点不知所措。有什么想法吗?
发布于 2015-12-22 12:42:56
找到了解决办法。必须强制使用环境变量。因此,要运行该应用程序:
ROOT_URL="https://app-username.c9users.io/" meteor --port $IP:$PORT
https://stackoverflow.com/questions/34411703
复制相似问题