Annoying cross-origin Ajax call

Source: Internet
Author: User
Recently, a project was developed using ajax.net. The user dynamically performs query operations on the ASPX page. The query conditions and returned results are carried out in Ajax mode, and the returned data is JavaScript objects, to make this module cross-platform universal, I analyzed the ashx (actually JavaScript) generated by Ajax during runtime) CodeAnd then copy the data to a project that only contains HTML and JS. The project that provides data runs in.. NET Server, But I can copy the calling code to any server to implement cross-platform calling.
However, in use, I found a difficult problem to solve. I used this pure HTML and JS stripped-out project. If the project and the project that provided the data source are not on one server, each time you request data, the system will prompt "information outside the access control area, which is dangerous; whether to continue". If you select no, the data cannot be transmitted.
I think cross-Origin data calling is a problem that every Ajax project will encounter. If this problem cannot be solved, Ajax applications will also begin with restrictions. I don't know where it will be experienced, by the way, I found several related URLs, which are recorded here first.

Http://www.duduwolf.com/catalog.asp? Tags = Ajax
Http://www.blueidea.com/bbs/newsdetail.asp? Id = 2359848
Http://www.hibernate.org.cn/viewtopic.php? T = 15641 & Highlight = % BF % E7 % D3 % F2

Related Article

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.