Note that there are some explanatory texts on larger screens.

plurals
  1. POcrossdomain.xml received but still in violation
    primarykey
    data
    text
    <p>In flash I put:</p> <pre><code>Security.allowDomain("*"); socket = new FlashSocket("http://engine.WEBSITE1.com:8002"); </code></pre> <p>when I run the flash file online it then automatically asks my node.js app through port 8002 for the <strong>/crossdomain.xml</strong>, so I added this code before socket.io connects:</p> <pre><code>app.get('/*',function(req,res,next){ if(req.method==='GET'&amp;&amp;req.headers.referer.indexOf('http://WEBSITE0.com/')===0&amp;&amp;req.url==='/crossdomain.xml'){ console.log('/crossdomain.xml'); flash=true; var body='&lt;cross-domain-policy&gt;&lt;allow-access-from domain="WEBSITE0.com" to-ports="8002"/&gt;&lt;/cross-domain-policy&gt;'; console.log(body); res.writeHead({'Content-Type':'text/x-cross-domain-policy'}); res.write(body); res.end(); } else if(req.method==='GET'){console.log('???');console.dir(req);} }); </code></pre> <p><img src="https://i.stack.imgur.com/iUHSP.png" alt="enter image description here"></p> <p>I see that I get the cross domain policy but still get denied with security sand box violation. <strong>In fact the violation is not what i expected at all, as flash is asking for the cross domain policy then refusing to load data from there even though ALSO I have an identical (appart from website names) crossdomain.xml on both websites</strong></p> <pre><code>&lt;cross-domain-policy&gt;&lt;allow-access-from domain="WEBSITENAME" to-ports="*"/&gt;&lt;/cross-domain-policy&gt; </code></pre> <p><img src="https://i.stack.imgur.com/xPd3K.png" alt="enter image description here"></p> <p>My swf file then fails to receive the FlashSocketEvent.CONNECT event even though; in my node.js app I put this:</p> <pre><code>io.sockets.on('connection',function(socket){ if(flash===true){console.log('flash');} </code></pre> <p>I do see the console say <strong>"flash"</strong>! just adobe is saying no to me... any thoughts?</p>
    singulars
    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