chrome阻止安全脚本中的不安全内容?

时间:2013-08-29 21:34:02

标签: ruby-on-rails

我在rails视图中有一个javascript_include_tag,而chrome正在抛出此警告:

[blocked] The page at https://..... ran insecure content from http://...index.js.

并且没有脚本加载。但是如果查看html源代码,脚本将包含在https://

这是一个铬虫吗?这是怎么回事?

1 个答案:

答案 0 :(得分:0)

它可能是宝石包含的脚本。

确保

config.force_ssl = true

已在config/application.rb

中启用