Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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>

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?

like image 846
Arthur Kushman Avatar asked Nov 17 '25 03:11

Arthur Kushman


1 Answers

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.

If you need several versions of the script you could write a shell script to synchronize all of the versions that you need on a regular basis.

Your new script reference should look something like this:

<script src="js/yandex.api.package.full.debug.ru-RU.js" type="text/javascript"/>

like image 102
jmh Avatar answered Nov 19 '25 16:11

jmh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!