Note that there are some explanatory texts on larger screens.

plurals
  1. POFlex CrossDomain.xml Error - Channel.Security.Error error Error #2048
    primarykey
    data
    text
    <p>I am struggling with getting a Flex SWF (which is embedded in JSP) to access remote data (from another domain).</p> <p>I have a crossdomain.xml (which is embedded in my SWF). Its content is as follows:</p> <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;cross-domain-policy&gt; &lt;site-control permitted-cross-domain-policies="all" /&gt; &lt;allow-access-from domain="*"/&gt; &lt;allow-http-request-headers-from domain="*" headers="*"/&gt; &lt;/cross-domain-policy&gt; </code></pre> <p>In my main.xml I load the crossdomain.xml file using:</p> <pre><code>Security.loadPolicyFile("http://www.mysite.com:8380/CSS/ReviewItemsServer/crossdomain.xml"); </code></pre> <p>When I access the JSP webpage via the browser, the embedded SWF tries to do a Java remoting call and I get the following error:</p> <pre><code>Error string = Send failed Error code = Client.Error.MessageSend Error details = Channel.Security.Error error Error #2048: Security sandbox violation: http://www.mysite.com/CSS/ReviewItemsServer/ReviewItemsMain.swf cannot load data from http://www.mysite.com:8380/CSS/ReviewItemsServer/messagebroker/amf. url: </code></pre> <p>I am pretty sure that the crossdomain.xml file actually get loaded by the SWF as I have created a simple URLLoader to load the xml file and check that there is no error. So I dont think that is an issue...</p> <p>When I run the SWF in debug mode...I also see the following error message:</p> <pre><code>Error: [strict] Ignoring policy file at http://www.mysite.com:8380/CSS/ReviewItemsServer/crossdomain.xml due to missing Content-Type. See http://www.adobe.com/go/strict_policy_files to fix this problem. </code></pre> <p>Any help would be greatly appreaciated....</p> <p>Mark</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload