I am getting these warnings in my console and my script is not working fine
Blocked loading mixed active content "http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css"
Here is the screenshot:
How can I fix these warnings?
My Scripts:
<script type="text/javascript" src="http://malsup.github.io/jquery.blockUI.js"> </script>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">
This kinds of issue will come up if you view the page as SSL. You need to modify your reference as https or else start the url as // so that you will avoid this issue.
Use this code to include your cdn files : Use https protocol in your url :
Or this pattern :
When a user visits a page served over
HTTP
, their connection is open for eavesdropping andman-in-the-middle (MITM)
attacks. When a user visits a page served overHTTPS
, their connection with the web server is authenticated and encrypted with SSL and hence safeguarded from eavesdroppers andMITM
attacks.However, if an
HTTPS
page includesHTTP
content, theHTTP
portion can be read or modified by attackers, even though the main page is served overHTTPS
. When an HTTPS page hasHTTP
content, we call that content“mixed”
. The webpage that the user is visiting is only partially encrypted, since some of the content is retrievedunencrypted
overHTTP
. The Mixed Content Blocker blocks certainHTTP
requests onHTTPS
pages.Got this from Blog
This is a duplicate of Why am I suddenly getting a "Blocked loading mixed active content" issue in Firefox? which contains a perfect and concise answer:
The page displayed with HTTPS is calling contents over HTTP. This can be corrected by calling the page itself over HTTP or having the page to call its (probably dynamic) content with the same protocol as it was called itself.