Web服务中的CrossDomain错误

时间:2012-02-21 11:43:23

标签: web-services flex cross-domain

我正在使用网络服务从服务器获取信息并收到此错误:

 Error: Request for resource at http://backoffice.dev144.com/PPIWS/B144_MAPWS.ASMX by requestor from http://maps.localhost:10000/B144/Images_v2/b144_map.swf/[[DYNAMIC]]/4 is denied due to lack of policy file permissions.
*** Security Sandbox Violation ***
Connection to http://backoffice.dev144.com/PPIWS/B144_MAPWS.ASMX halted - not permitted from http://maps.localhost:10000/B144/Images_v2/b144_map.swf

当然我把crossdomain文件放在主服务器目录中,如下所示:

    allow-access-from domain="*" secure="false"/

谁能告诉我为什么它不起作用?

1 个答案:

答案 0 :(得分:1)

我看到您尝试登录其他子域http://backoffice.dev144.com/

如果您在主//网站上有crossdomain.xml,则无效。

您还需要将crossdomain.xml复制到backoffice.dev144.com/crossdomain.xml