Is it a crossdomain problem or a file permissions problem? Does the folder that contains the images have access "x" permissions for world? (711) Does the file have read permissions for world? (744) I don't know if you need a crossdomain.xml file for a subdomain.
Unix File Permission. Forgive me if you already know about how the file permissions work.
You can issue the command "ls -ltr" to get the file and directory permissions. The "." file is a link to the current directory. The ".." file is a link to the directory above. You can change the permissions with the chmod command.
chmod 711 ArbitraryFolderFileName
chmod 744 ArbitraryImageFileName.jpg
chmod 744 *.jpg ( all jpeg images in the directory )
chmod -r 744 *.jpg ( recursively all jpeg images in this folder others below )
The directory / folder that contains the images has permissions of 711 allows access to the folder, but does not allow you to do a directory listing.
Owner is 7 decimal, Group is 1 decimal, and world is 1 decimal.
World permissions of decimal 1 are 001 binary which correspond to the write, read, and access permissions ( executable if it is a file instead of a directory / folder )
You add the binary digits raised to the exponent of the position to obtain the decimal value that you use with chmod or the 0^2 + 0^1 + 1^0 = 1 decimal
Cross domain file
I am copying the source code for a crossdomain.xml file which Klaus posted here
Klauss's crossdomain.xml post
|
Quellcode
|
1
2
3
4
5
6
|
<?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="domain1.com" />
<allow-access-from domain="www.domain1.com" />
</cross-domain-policy>
|