如何在Chrome中强制加载动态的,不安全的内容? [英] How to force loading dynamic, insecure content in Chrome?

查看:164
本文介绍了如何在Chrome中强制加载动态的,不安全的内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在https中使用Jira,我想对一些额外的JS做一些调整。我的JS被托管在一个不安全的服务器上(没有可用的https)。

当我通过将不安全的JS文件插入DOM(使用浏览器扩展)来动态加载它时, Chrome告诉我:


[blocked] https:// jiraserver / browse http://myserver/jira.js




<我可以看到这是非常安全的,但我不在乎。我想加载那个不安全的JS文件。我如何告诉Chrome相信我,只是按照我说的去做?



我的插入方法(在扩展代码中):
$ b $(<函数(s){s.src ='http://myserver/jira.js'; return s;})(document.body.appendChild); $ b

  document.body.appendChild的createElement( '脚本'))); 


解决方案

Chrome支持问答,您可以使用以下命令行标记启动Chrome,以防止Chrome检查不安全的内容:

- allow-running-insecure-content



关于如何使用命令运行Chrome的一些文档标志


I'm using Jira in https and I have some adjustments I'd like to make with some extra JS. My JS is hosted on an insecure server (no https available).

When I dynamically load the insecure JS file by inserting it into the DOM (using a browser extension), Chrome tells me:

[blocked] The page at https://jiraserver/browse ran insecure content from http://myserver/jira.js.

I can see how this is very secure and all, but I don't care. I want to load that insecure JS file. How can I tell Chrome to trust me and just do what I say?

My insertion method (in the extension code):

document.body.appendChild((function(s){s.src='http://myserver/jira.js';return s;})(document.createElement('script')));

解决方案

According to this Chrome Support Q&A you can launch your Chrome with the following command line flag to prevent Chrome from checking for insecure content:

--allow-running-insecure-content

Here is some documentation on how to run Chrome with command flags

这篇关于如何在Chrome中强制加载动态的,不安全的内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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