Hi, I added the line
Security.loadPolicyFile("http://localhost:7001/test/crossdomain.xml");
on my ViewerContainer.mxml in
private function initializeHandler(event:FlexEvent):void
but the Flash Builder Console write me this warning:
Warning: Ignoring <site-control> tag in policy file from http://localhost:7001/test/crossdomain.xml. This tag is only allowed in master policy files.
Warning: Domain localhost does not explicitly specify a meta-policy, but Content-Type of policy file http://localhost:7001/test/crossdomain.xml is 'text/x-cross-domain-policy'. Applying meta-policy 'by-content-type'.
and when I run the application my browser network traffic send me this
"NetworkError: 404 Not Found - http://localhost:7001/crossdomain.xml"
but my problem is that I cant put crossdomain.xml in the root...because in the server I can only point to a subfolder (to a specific path)...
Thanks,
Naty
The cross domain has to be served from the server that you want to pull the services from by placing the file in the root directory of the web server. You will need to speak to your server admin to get the file placed where it needs to be.
Hi Anthony, thanks for your reply.
I have spoken to the server Admin, but it's not possible to put any file in the root folder....
I hope someone will tell me that there is another way to make it possible...
Thanks,
Naty