THttpServer和Flash应用程序
我有一个用Delphi创建的http服务器,它应该为Flash web应用程序提供一些数据。 服务器工作正常,它绑定到一个端口7777,我可以用浏览器成功地进行查询,不管怎样,当我试图从flash应用程序查询它时-我收到以下错误:THttpServer和Flash应用程序,flash,delphi,apache-flex,flex4.5,Flash,Delphi,Apache Flex,Flex4.5,我有一个用Delphi创建的http服务器,它应该为Flash web应用程序提供一些数据。 服务器工作正常,它绑定到一个端口7777,我可以用浏览器成功地进行查询,不管怎样,当我试图从flash应用程序查询它时-我收到以下错误: Error: [strict] Ignoring policy file at http://192.168.0.194:7777/crossdomain.xml due to incorrect syntax. See http://www.adobe.com/g
Error: [strict] Ignoring policy file at http://192.168.0.194:7777/crossdomain.xml due to incorrect syntax. See http://www.adobe.com/go/strict_policy_files to fix this problem.
Warning: Domain 192.168.0.194 does not specify a meta-policy. Applying default meta-policy 'master-only'. This configuration is deprecated. See http://www.adobe.com/go/strict_policy_files to fix this problem.
Error: Ignoring policy file at http://192.168.0.194:7777/?crossdomain.xml due to meta-policy 'master-only'
这是Flex中onCreateApplication的代码。在您的crossdomain.xml中添加这一行:
<site-control permitted-cross-domain-policies="master-only"/>
首先阅读文章,了解所有可用的元策略
尝试使用默认的“仅主控”值以外的其他值。不,不幸的是,此值也存在同样的问题:@YordanYanakiev:您是否尝试过除
仅主控
之外的策略?
Security.allowDomain("*");
Security.allowInsecureDomain("*");
Security.allowDomain("http://192.168.0.194");
Security.allowInsecureDomain("http://192.168.0.194");
Security.loadPolicyFile("http://192.168.0.194:7777/?crossdomain.xml");
<site-control permitted-cross-domain-policies="master-only"/>