Would it be wwwroot, C, the root virtual directory where the assets are hosted, or the same folder that the assets are in?
Meaning if I have a virtual directory 'virdir' with a sub directory 'swf', which is really like C:\somedir\assets\swf\, where would the crossdomain.xml need to go so that my swf app on a different server can access the swfs?
The most common location for a policy file on a server is in the root directory of a target domain with the filename crossdomain. xml (e.g. https://example.com/crossdomain.xml)—the default location that clients check when a policy file is required.
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 is hosted on and is required for Flash to use Speedtest servers. Note there are two sources of crossdomain information for a Speedtest Server.
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.
Cross-domain policy files enable access to web services outside the application's domain. By default, Adobe Flash and Microsoft Silverlight web applications are not allowed to access web services that reside outside the domain where the application is hosted.
you need to be able to access it as http://yoursite.com/crossdomain.xml so where would you put it to do that?
As a rule of thumb I put it next to my index.html for the site.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With