How to deal with the refusal of access in IE jquery

Source: Internet
Author: User
Multi-person cooperation in the development of a site process, in order to facilitate the development of some public files such as js,css,images on the Internet, each link to such files for use. Local testing when some of the Web page JS code in the IE8,IE6 will stop running, and reported a JS file refused access, such as Jquery.js. Jquery.js is certainly not wrong, and this error occurs only in IE, FF and chrome are normal, and the outside test is normal. After analysis, the discovery is caused by IE cross-domain, in

Multi-person cooperation in the development of a site process, in order to facilitate the development of some public files such as js,css,images on the Internet, each link to such files for use.


Local testing when some of the Web page JS code in the IE8,IE6 will stop running, and reported a JS file refused access, such as Jquery.js. Jquery.js is certainly not wrong, and this error occurs only in IE, FF and chrome are normal, and the outside test is normal.


After analysis, found that the internet is caused by IE cross-domain, in the external network test, JS files and Web files are in a two-level domain name, everything is normal; local testing is a cross-domain call that throws an error.

Countermeasures:

tool--internet Options--security--Define your own level--other--through the domain Access data source , set to be available (I do not know if this setting has security issues)

How to deal with the refusal of access in IE jquery

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.