【问题标题】:Meteor Http and https block on cloud9cloud9 上的 Meteor Http 和 https 块
【发布时间】:2015-12-22 08:45:08
【问题描述】:

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

【问题讨论】:

    标签: meteor https cloud9-ide adminlte


    【解决方案1】:

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

     ROOT_URL="https://app-username.c9users.io/" meteor --port $IP:$PORT
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-05-18
      • 1970-01-01
      • 2016-06-05
      相关资源
      最近更新 更多