How to solve the cross-domain problem of ajax below IE9 version
This article mainly explains "how to solve the ajax cross-domain problem under the IE9 version". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to solve the ajax cross-domain problem under the IE9 version".
Let the test find the problem. I couldn't get the data under IE8, and then I checked the js I wrote to see if there were any incompatibility problems, but none of them. Why can't I get the request?
I printed out the error of ajax to prompt no transport, found information on the Internet, and added this to the first line of js. JQuery.support.cors = true.
OK, this problem is gone, but there is another error that does not have permission. Baidu didn't have what I wanted for this problem. Finally, I read an article and it became clear to me that this is the security setting problem of IE browser.
The solution is as follows: click the IE browser's "tools-> Internet options-> Security-> Custom level" to select "access data sources through the domain" in the "other" options as "enabled" or "prompt", and click OK.
Thank you for your reading, the above is the content of "how to solve the ajax cross-domain problem under the IE9 version". After the study of this article, I believe you have a deeper understanding of how to solve the ajax cross-domain problem under the IE9 version, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!