Why am I suddenly getting a “Blocked loading mixed active content” issue in Firefox?

后端 未结 14 1363
我寻月下人不归
我寻月下人不归 2020-11-22 06:46

This morning, upon upgrading my Firefox browser to the latest version (from 22 to 23), some of the key aspects of my back office (website) stopped working.

Looking a

相关标签:
14条回答
  • 2020-11-22 07:01

    To force redirect on https protocol, you can also add this directive in .htaccess on root folder

    RewriteEngine on
    
    RewriteCond %{REQUEST_SCHEME} =http
    
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    
    0 讨论(0)
  • 2020-11-22 07:05

    It means you're calling http from https. You can use src="//url.to/script.js" in your script tag and it will auto-detect.

    Alternately you can use use https in your src even if you will be publishing it to a http page. This will avoid the potential issue mentioned in the comments.

    0 讨论(0)
  • 2020-11-22 07:09

    I had this same problem because I bought a CSS template and it grabbed a javascript an external javascript file through http://whatever.js.com/javascript.js. I went to that page in my browser and then changed it to https://whatever... using SSL and it worked, so in my HTML javascript tag I just changed the URL to use https instead of http and it worked.

    0 讨论(0)
  • 2020-11-22 07:09

    I just fixed this problem by adding the following code in header:

        <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
    
    0 讨论(0)
  • 2020-11-22 07:11

    Its given the error because of security. for this please use "https" not "http" in the website url.

    For example :

       "https://code.jquery.com/ui/1.8.10/themes/smoothness/jquery-ui.css"
       "https://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.10/jquery-ui.min.js"
    
    0 讨论(0)
  • 2020-11-22 07:12

    If you are consuming an internal service via AJAX, make sure the url points to https, this cleared up the error for me.

    Initial AJAX URL: "http://XXXXXX.com/Core.svc/" + ApiName
    Corrected AJAX URL: "https://XXXXXX.com/Core.svc/" + ApiName,

    0 讨论(0)
提交回复
热议问题