Unsafe script

Asked

Viewed 476 times

5

I am developing a website with 2 scripts. However when sending the site to the test area, the scripts do not load, as in the image below.

inserir a descrição da imagem aqui

What should I do to be automatically executed and recognized as safe?

  • What scripts are these?

  • are fadein() and fadeOut() scripts of Divs and another of "search of matched cities", with mysql

  • Take a look at the answer and run a test, please. :)

1 answer

8


This happens when you try to load some HTTP content within an HTTPS page, such as Javascript:

             ERRADO
               ↓
<script src="http://ajax.googleapis..."></script>


              CORRETO
                 ↓
<script src="https://ajax.googleapis..."></script>


          CORRETO (veja nota)
             ↓
<script src="//ajax.googleapis..."></script>

Note: Without specifying the protocol only works when the remote URL accepts both HTTP and HTTPS protocols.

  • thanks! worked with your help. :)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.