0

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

Seb33300
  • 7,464
  • 2
  • 40
  • 57
  • I'm very unclear what you're asking. What does "put the swf file on my subdomain" mean? It sounds like you already put it on a subdomain ( static.mydomain.com ). How are you attempting to use it on another domain? What does "use it mean"? I do not believe you can serve a file on one domain from another domain; unless you are somehow using virtual directories on the server or have both domains pointing to the same web root. That would have nothing to do w/ cross domain files, though. – JeffryHouser Oct 20 '12 at 15:42
  • puttin the file on my subdomains meens that I can acces the file with my subdomain url : if i want to use the swf file on asubdomain.mydomain.com I can acces my swf on asubdomain.mydomain.com/path/to/file.swf with no problem. But I have security problem when I try to access it on static.mydomain/path/to/file.swf – Seb33300 Oct 21 '12 at 17:06
  • I think I'm only half understanding. If you want a SWF on asubdomain.mydomain.com to access static.mydomain.com then you'll need a crossdomain file at static.mydomain.com/crossdomain.xml . Or you could just serve the swf off static.mydomain.com and embed it anywhere you want (kind of like YouTube does w/ the share link of their player) – JeffryHouser Oct 21 '12 at 19:23
  • The second one : "Or you could just serve the swf off static.mydomain.com and embed it anywhere you want (kind of like YouTube does w/ the share link of their player)" But it seems to not work. The script is : http://www.plupload.com/ – Seb33300 Oct 22 '12 at 11:46
  • I have used that embed approach without problems. I don't know anything about that script so do not know what variables it may introduce to the usage of a "Remote embed" – JeffryHouser Oct 22 '12 at 16:26
  • So, embeding a swf from another domain do no need a crossdomain.xml file ? i just foud this on their forum : http://www.plupload.com/punbb/viewtopic.php?id=1685 – Seb33300 Oct 23 '12 at 08:54
  • A SWF does not need a crossdomain.xml file in order to access services on the domain it was served off of. – JeffryHouser Oct 23 '12 at 13:22

1 Answers1

3
<?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:

.