Solution for cross-domain data access failure of crystal easy table

Source: Internet
Author: User

The last time I encountered a problem when I made a shop sales comparison with the crystal table, I had not solved it.
Today, a friend of mine also encountered this problem. After reading this question, he finally found a solution. The solution is as follows.

Current situation: the shop sales comparison report (Flash file) is currently in the IIS Directory of 34. This report needs to access the WS data of 61, but the following problems may occur:

Problem: the cross-origin policy is incorrect. External data cannot be obtained.

Cause: the address used to access the flash report must be the same as that used to access the data interface of the report, that is, the IP address must be the same.
For example, in the Flash file http: // 192.168.0.34: 8888/View/sjyb/xsdb.swf
The data accessed by the report is http: // 192.168.0.61: 8080/dswsbobje/qaawsservices/queryasaservice? & Cuid = adsxf7qx0ljgueezc7350g8 & authtype = secenterprise & locale = zh_cn & timeout = 60

This will cause such an error. You must put the flash report in the http: // 192.168.0.61: 8080/dswsbobje/directory for normal access to the same domain.

Copy xsdb.swf to the directory of dswsbobje/on the 61 server. The problem is solved and access is normal:

After testing, we found that only the IP address must be consistent, and it has nothing to do with the subdirectory of the URL.

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.