警告: 域 xx 没有指定元策略。_陕南赤子_新浪博客



警告: 域 xxx.xxx.xxx.xxx没有指定元策略。将应用默认元策略 'master-only'。此配置已停用。请访问http://www.adobe.com/go/strict_policy_files_cn 以解决此问题。

出现这个错误大部分是由于安全策略文件错误所致,使用以下代码即可解决

Security.loadPolicyFile("http://xxx.xxx.xxx.xxx/crossdomain.xml");

crossdomain.xml 策略文件:
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy> <site-control permitted-cross-domain-policies="all" />
    <allow-access-from domain="*" />
    <allow-http-request-headers-from domain="*" headers="*"/>
</cross-domain-policy>

评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值