Unsecured script

5

I'm developing a website with 2 scripts. But by submitting the site to the testing area, the scripts do not load, as in the image below.

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

    
asked by anonymous 17.10.2017 / 19:24

1 answer

8

This happens when you try to load some HTTP content into an HTTPS page, such as a JavaScript:

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


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

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

    
17.10.2017 / 20:17