Chrome浏览器默认是阻止混合内容。我如何调整我的设置/配置,以允许混合内容,而不需要每次在UI上进行任何调整?

我找到了两个解决方案,但都不起作用:

Several articles say you can adjust this under the Security section of "Under the Hood" in the Options. This option no longer seems to exist. There is no Under The Hood tab and there is no such dropdown to adjust how Chrome handles mixed content as far as I can tell. Another option is to add the --allow-running-insecure-content flag to your command line. I did this like so: "C:\Program Files\Google\Chrome\Application\chrome.exe" --allow-running-insecure-content. However this made no difference. If I tried adding the flag inside the double quotes, then Windows complains saying it is invalid.

那么我现在使用最新版本的Chrome有什么选择呢?


当前回答

运行下面的命令帮助我运行HTTPS web页面,iframe有ws(不安全)连接

Chrome.exe——user-data-dir=c:\temp-chrome——disable-web-security——allow-running-insecure-content

其他回答

在OSX上,从命令行执行以下工作:

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --allow-running-insecure-content

被提到的盾牌图标也不在侧边栏,但我解决了它,做以下工作:

在URL输入栏的最右边找到屏蔽图标,

一旦点击,下面的弹出窗口应该出现,其中你可以点击加载不安全的脚本,

这应该会导致页面刷新,脚本应该开始工作。这曾经是一个错误,

现在只是一个警告

操作系统:Windows 10

Chrome版本:76.0.3809.132(官方版本)(64位)


编辑# 1

在66.0.3359.117版本,屏蔽图标仍然可用:

注意弹出式设计的变化,这是66.0.3359.117版本的Chrome。

注意:只有当你在https上加载不安全的内容(来自http的内容)时,屏蔽图标才会出现。

另一个解决方案,在会话之间是永久性的,而不需要你在打开chrome时运行一个特定的命令如下:

打开Chrome浏览器窗口 在URL栏中输入Chrome://net-internals 单击侧边栏中的“域安全策略” 在“Add HSTS/PKP domain”一节中添加您希望始终能够以http形式访问的域名

Chrome 46和更新的版本应该会显示混合内容,没有任何警告,只是在地址栏中没有绿色锁定。

来源:在谷歌在线安全博客上简化Chrome中的页面安全图标。

运行下面的命令帮助我运行HTTPS web页面,iframe有ws(不安全)连接

Chrome.exe——user-data-dir=c:\temp-chrome——disable-web-security——allow-running-insecure-content