当我尝试从 flex 进行 java 调用时,出现以下错误。
[RPC 故障 faultString="Send failed"
faultCode="Client.Error.MessageSend"
faultDetail="Channel.Security.Error 错误
错误 #2048:安全沙箱违规:'http://sample.com/sample.swf' 无法加载来自 http://sample:8080/messagebroker/amf的数据。url : 'http://sample:8080/messagebroker/amf'"]
当我尝试在我的本地 tomcat 服务器上运行它时,它工作正常。但是当作为站点托管时,我收到了这个错误。我也尝试将 crossdomain.xml 文件放在根目录中。但错误永远不会消失。跨域文件如下所示。
<cross-domain-policy>
<site-control permitted-cross-domain-policies="all" />
<allow-access-from domain="*" to-ports="*"/>
<cross-domain-policy/>
日志这样说
与“http://sample:8080/messagebroker/amf”的连接停止 - 不允许来自 http://sample.com/sample.swf。
有没有人在托管弹性网站时遇到过类似的问题?