Yet Another crosdomain.xml question or: "How to interpret documentation correctly"

Posted by cboese on Stack Overflow See other posts from Stack Overflow or by cboese
Published on 2010-04-09T15:00:18Z Indexed on 2010/04/09 15:03 UTC
Read the original article Hit count: 362

Hi! I have read a lot about the new policy-policy of flash player and also know the master policy file. Now image the following situation: There are two servers with services (http) running at custom ports

  • servera.com:2222/websiteA
  • serverb.com:3333/websiteB

Now I open a swf from server a (eg. servera.com:2222/websiteA/A.swf) that wants to access the service of serverb. Of course I need a crossdomain.xml at the right place and there are multiple variations possible. I dont want to use a master policy file, as I might not have control over the root of both servers.

One solution I found works with the following crossdomain:

<?xml version="1.0"?>
<cross-domain-policy>
    <allow-access-from domain="*"/>
</cross-domain-policy>

served at serverb.com:3333/websiteB/crossdomain.xml

So now for my question: Is it possible to get rid of the "*" and use a proper (not as general as *) domainname in the allow-access-from rule? All my attempts failed, and from what I understand it should be possible.

© Stack Overflow or respective owner

Related posts about flex

Related posts about crossdomain.xml