开发者

how to create setup crossdomain for Flash project

开发者 https://www.devze.com 2023-01-11 04:46 出处:网络
I am trying to add a crossdomain file for my flash project...haven\'t done it before..and there are not too much information online....Anyone ca开发者_运维问答n help me about it??Thanks Here is a copy

I am trying to add a crossdomain file for my flash project...haven't done it before..and there are not too much information online....Anyone ca开发者_运维问答n help me about it??Thanks


Here is a copy of one that works for me
crossdomain.xml:

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
        <allow-access-from domain="*" />
    </cross-domain-policy> 

this is in my document root folder http://mysite.com/
security sucks but it will get you up and running. If you want to only connections from one domain, change "*" to "http://my-allowed-domain.com"
my permissions on the file are also really strict 644. Just make it readable. good luck!


There's no substitute for reading and understanding the recommendations and articles, and determining how much access you want to allow (or posting a lot more information so we can give accurate advice). If you just put up an "allow everything" policy in order to get your application working, you potentially compromise several kinds of security your site might implement.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号