开发者

how to create setup crossdomain for Flash project

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜