如何通过https禁用谷歌Chrome拦截脚本? [英] How to disable google chrome blocking scripts over https?
问题描述
我有一个网站,我需要在头部中上传脚本,例如:
I have a site and I need to upload script in the head section like:
<script src="http://api-maps.yandex.ru/2.0/?load=package.full&mode=debug&lang=ru-RU" type="text/javascript"></script>
谷歌Chrome浏览器弹出消息网站上有一个内容可能违规bla bla bla,
我试图通过https协议设置这个脚本,但是同样的事情发生了。
如何在Chrome中避免此功能?
Google Chrome browser pops up the message "There is a content on the site that may be offencive bla bla bla", I`ve tried to set this script through https protocol, but the same thing heppens. How to avoid this feature in Chrome?
推荐答案
从本地网站镜像脚本并参考它。如果您需要几个版本的脚本,您可以编写一个shell脚本来同步所有的脚本文件。这可能会导致基于脚本URL的冒犯性警告。
Locally mirror the script from your own site and reference it that way. It is likely getting the "offensive" warning based off of the URL of the script.
定期需要的版本。
您的新脚本引用应如下所示:
Your new script reference should look something like this:
< script src =js / yandex.api.package.full.debug.ru-RU.jstype =text / javascript/>
这篇关于如何通过https禁用谷歌Chrome拦截脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!