2

我的流星应用程序在 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,我有点不知所措。有任何想法吗?

4

1 回答 1

1

找到了解决方案。必须强制环境变量。因此要运行应用程序:

 ROOT_URL="https://app-username.c9users.io/" meteor --port $IP:$PORT
于 2015-12-22T12:42:56.040 回答