简体   繁体   中英

IE8 can't render my website unless I add host to trusted sites

I have deployed my website to an external server and when I connect to it on IE, it doesn't render my page correctly unless I add the host to my trusted websites. It renders fine on chrome. Any idea what could cause this? I link the css/js on the top of the html like this:

<link rel="stylesheet" href="css/display.css">
<script type="text/javascript" src="javascript/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="javascript/jquery-ui.js"></script>

One thing I noticed about IE 7 and IE 8 is you will need to use jquery-1.11.1.min.js instead of jquery-2.1.1.min.js . jquery-2.1.1.min.js is only supported by IE 9+. That is most likely the problem.

Many corporations have company-wide security policies set on Internet Explorer. These settings are usually the responsibility of your SysAdmins, or IT Ops guys (titles vary). The reason it differs from your IE at home is due to these extra security settings, and depending on the policy of your company it may be possible to add your external host to everyone's trusted sites list in one action by the SysAdmins. If not, then you will have to find alternatives. Locally hosted css and js should not matter in this case, the problem is more the unrecognized domain name.

The site works in Chrome because these settings are tied to Windows and Chrome does not integrate with those (a major reason why some companies for all non-developers to use IE for everything). Good luck, this problem falls under "battling the bureaucracy" as opposed to actual honest-to-goodness programming, but hopefully you'll prevail.

Yes it is true that due to security reasons IE asks the user if it should access scripts from untrusted domain. If it is jquery( jquery 2 not supported by IE8 use 1.11 or earlier ) that is being blocked by IE, try using jquery from Google cdn. Google is trusted host I am sure.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM