Annoying Error #2048: Security sandbox violation from localhost

前端 未结 2 489
悲哀的现实
悲哀的现实 2020-12-21 10:25

This is my crossdomain.xml that I put in the same folder of my Web.config:




        
相关标签:
2条回答
  • 2020-12-21 11:19

    Since you use as3httpclientlib that based on Socket, rather than URLLoader you should setup socket policy server instead of http one (so your crossdomain.xml isn't used by flash in this case).

    To setup flash policy server you can use perl script from this article http://www.adobe.com/devnet/flashplayer/articles/socket_policy_files.html with policy xml suggested by @Bart Friederichs (with to-ports attribute)

    0 讨论(0)
  • 2020-12-21 11:20

    Try this one:

    <?xml version="1.0"?>
    <cross-domain-policy>
      <site-control permitted-cross-domain-policies="all"/>
      <allow-access-from domain="*" to-ports="*" />
    </cross-domain-policy>
    

    also, if you send it yourself, make sure to send a null-character in the end.

    0 讨论(0)
提交回复
热议问题