I'm using a few lines of JavaScript inside an https webpage that I'm uploading. I call the jQuery library as well as the ajax one in the <head>
using this code:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.js"> </script>
<script src="https://code.jquery.com/jquery-1.12.3.js"></script>
After using debugging mode in chrome, I received this mixed content error:
"Mixed Content: the page xyz was loaded over HTTPS, but requested an insecure script 'http://code.jquery.com/jquery-latest.min.js'. This request has been blocked; the content must be served over HTTPS."
I looked around google and stackoverflow (where I often find nice solutions) to find a solution to my problem but was unsuccessful. I need to load these libraries to make my script run (as well as my asynchronous ajax call) but the problem seems to reside in the lib(always checking the debugging console).
More specifically, the following line: jquery-1.12.3.js:10444 which corresponds to
// Circumvent IE6 bugs with base elements (#2709 and #4378) by prepending
// Use native DOM manipulation to avoid our domManip AJAX trickery
head.insertBefore( script, head.firstChild );
Has anyone ever encountered something similar? How did you resolve this issue?