如何在Chrome中强制加载动态的

如何在Chrome中强制加载动态的

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

问题描述

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

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





我的插入方法(在扩展代码中):
$ b $(

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


解决方案

据,您可以使用以下命令行标记启动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:

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中强制加载动态的,不安全的内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-01 23:04