0

在我的 Flash 应用程序中向服务器发出请求后,我收到以下错误

错误 #2044:未处理的 SecurityErrorEvent:。text=Error #2048: 违反安全沙箱:http: //domain.com/subfolder/app.swf无法从https://domain.com/cgi-bin/app.n加载数据

clientaccesspolicy.xml我有以下

<access-policy>
    <cross-domain-access>
        <policy>
            <allow-from http-request-headers="*">
                <domain uri="*"/>
            </allow-from>
            <grant-to>
                <resource path="/" include-subpaths="true"/>
            </grant-to>
        </policy>
    </cross-domain-access>
</access-policy>

crossdomain.xml我有

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
  <allow-http-request-headers-from domain="*" headers="*"/>
  <allow-access-from domain="*" headers="*"/>
</cross-domain-policy>

我应该如何修改上述文件以使请求正常?

4

0 回答 0