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.