Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can someone post a well formed crossdomain.xml sample?

I've been reading that Adobe has made crossdomain.xml stricter in flash 9-10 and I'm wondering of someone can paste me a copy of one that they know works. Having some trouble finding a recent sample on Adobe's site.

like image 205
MetaGuru Avatar asked Oct 17 '08 18:10

MetaGuru


People also ask

What is Crossdomain xml and why do I need it?

A cross-domain policy is simply a user-defined set of permitted data access rules encapsulated in a crossdomain. xml file. It is only viable on servers that communicate via HTTP, HTTPS, or FTP. A cross-domain policy file is an XML document that grants a web client permission to handle data across one or more domains.

Do I need Crossdomain xml?

xml. A cross-domain policy file is needed for Flash. It is an XML document that grants a web client, such as Adobe Flash Player permission to handle data across domains.

What is Crossdomain xml?

The crossdomain. xml file is a cross-domain policy file. It grants the Flash Player permission to talk to servers other than the one it's hosted on and is required for Flash to use Speedtest servers. Note there are two sources of crossdomain information for a Speedtest Server.


2 Answers

This is what I've been using for development:

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

This is a very liberal approach, but is fine for my application.

As others have pointed out below, beware the risks of this.

like image 178
Mitch Haile Avatar answered Nov 27 '22 06:11

Mitch Haile


If you're using webservices, you'll also need the 'allow-http-request-headers-from' element. Here's our default, development, 'allow everything' policy.

<?xml version="1.0" ?> <cross-domain-policy>   <site-control permitted-cross-domain-policies="master-only"/>   <allow-access-from domain="*"/>   <allow-http-request-headers-from domain="*" headers="*"/> </cross-domain-policy> 
like image 30
ThePants Avatar answered Nov 27 '22 06:11

ThePants