我在我的 Rails 应用程序中添加了即时聊天(如 gmail 聊天),并且正在使用 private_pub 和 faye。到目前为止,该应用程序似乎可以运行,但用户只能在刷新页面后才能看到消息。我检查了该元素,它显示 faye.js 被阻止。确切的错误是
Mixed Content: The page at 'https://....' was loaded over HTTPS, but requested an insecure script 'http://localhost:9292/faye.js'. This request has been blocked; the content must be served over HTTPS.
有没有人遇到过这样的错误和/或知道如何解决这个问题?有关错误的屏幕截图,请参见附图。在此处输入图像描述