Flex socket crossdomain

Posted by Yonatan Betzer on Stack Overflow See other posts from Stack Overflow or by Yonatan Betzer
Published on 2010-04-28T12:06:51Z Indexed on 2010/04/28 19:07 UTC
Read the original article Hit count: 553

Filed under:
|
|
|
|

I am trying to connect to a socket server from flex. I read, on adobe's documentation, the client automatically sends a "request-policy-file" xml element to the socket before allowing it to be opened, and should receive a policy file.

The client sends the xml element as expected, My server receives it (on the port I want to use, port 6104) and replies on the same port with:

<?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="*" to-ports="*"/>
</cross-domain-policy>

To the best of my knowledge, this should be the most permissive policy available on a socket.

The flash player logs indicate a timeout looking for the socket policy file, although I know my socket returned the response immediately.

What should I do ?

© Stack Overflow or respective owner

Related posts about flex

Related posts about flash