0
点赞
收藏
分享

微信扫一扫

警告: 域 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>


举报

相关推荐

0 条评论