IE Security and Unsecured Items Message

I get the message "This page contains bothe Secure and Non secure items message" in IE. When I commented out the following piece of code from the dojo.js.uncompressed.js file, the message disappeared.

if(dojo.isIE){
  if(!dojo.config.afterOnLoad){
    document.write('<scr'+'ipt defer src="//:" '
      + 'onreadystatechange="if(this.readyState==\'complete\'){' + dojo._scopeName + '._loadInit();}">'
      + '</scr'+'ipt>'
    );
}

      

Is this a dojo problem? I would like to move the commented code into a different custom file so that the dojo structure is not affected. Can you suggest a better way to implement it. Thank.

+1


source to share


2 answers


You would get this error if you are using frames or have external files where some files have an https url and some have a http url. Assuming your main page is loading via https, you can try changing:

src = "//:"


in

src = "https //:"
0


source


//: this is most likely a problem, since I ran into a similar problem with a piece of javascript code ... In internet explorer locaiton //: is unsafe, so when your page (presumably on https: // url), IE notes that you loaded your main code from a secure location and another script loaded from an unsecured location.



The workaround I came up with was to create an empty file in my root named "blank.html" (although "blank.js" will probably work better in your case) and replace the link //: "/ blank .html ". This will take another hit on your web server, but browser caching will probably keep it minimal.

0


source







All Articles