Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the cross-domain problem of ajax below IE9 version

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report