Reputation: 7566
I am trying to use a flash script (plupload) on all my domains and sub-domains hosting it on my static sub-domain.
The swf file is placed on my static.mydomain.com/path/to/file.swf
And I want to use this file on my others domains and subdomain like : www.mydomain.com or asubdomain.mydomain.com I also would like to use it on another domain extension for the same domain name, like : mydomain.net
But I fail to use it. And if I put the swf file on my subdomain where I want to use it, it works fine.
So I think i need to place a crossdomain.xml somewhere but I don't no where ? Only on my static subdomain ? On each of my subdomains ?
Thanks for the help
Upvotes: 0
Views: 2195
Reputation:
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<site-control permitted-cross-domain-policies="all"/>
<allow-access-from domain="*" secure="false"/>
<allow-http-request-headers-from domain="*" headers="*" secure="false"/>
</cross-domain-policy>
if you want a 'less-loose' XML, duplicate either one of the *
lines, putting your sub-domain(s) one by one, or using a shorthand such as *.mydomain.com
.
taken from:
.
Upvotes: 3