如何获取最新Chrome(版本55)以允许混合内容? [英] How to get Latest Chrome (Version 55) to allow mixed content?

查看:406
本文介绍了如何获取最新Chrome(版本55)以允许混合内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用开发中的HTTP和生产中的HTTPS进行通信的chrome扩展。



我从使用HTTPS的网页运行。



当我在开发模式中使用此扩展时,出现以下错误。
$ b


混合内容:页面在'

解决方案

遵循Zig Mandel的提示,我使用命令行参数来运行Chrome

我创建了一个名为 c:\_chrome_data 的文件夹,并将我的开发人员扩展程序解压缩为Chrome扩展我使用这个命令行。
$ b $ pre code>C:\程序文件(x86)\Google\Chrome\Application \ chrome.exe--allow-running-insecure-content --disable-web-security --user-data-dir = C:\ chrome_data

点击盾牌,我注意到屏蔽版在55版本中不再可用,除非您有包含命令行中列出的设置。





工作分机


I have a chrome extension that communicates using HTTP in development and HTTPS in production.

I run it from webpages that use HTTPS.

When I use this extension in my development mode I get the following error.

Mixed Content: The page at 'https://somesite.com' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://david-sniper.local:3001/api/end-point'. This content should also be served over HTTPS.

In the past I have been able to resolve this error by going reading this post how-to-get-chrome-to-allow-mixed-content

There are two solutiions in this post.

  1. "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --allow-running-insecure-content
  2. In the address bar at the right end should be a 'shield' icon, you can click on that to run insecure content.

I have never had success with the first solution, but the second solution where you click on the 'shield' icon was working up until a few weeks ago.

I'm now on Chrome 55 and there is NO Shield option to click on, so I'm wondering how to get mixed content working in developer mode?

解决方案

Following a tip by Zig Mandel, I used command line parameters to run Chrome without security.

I created a folder called c:\_chrome_data and I unpacked my developer extension into chrome extensions and I used this command line.

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --allow-running-insecure-content --disable-web-security --user-data-dir=C:\_chrome_data

Click the Shield, I noticed that the shield is not available in Version 55 of chrome anymore unless you have the settings listed in the command line included.

Working Extension

这篇关于如何获取最新Chrome(版本55)以允许混合内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆