Select to view content in your preferred language

crossdomain.xml

3588
2
09-10-2014 03:57 AM
NatashaManzuiga
Occasional Contributor

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

0 Kudos
2 Replies
AnthonyGiles
Frequent Contributor II

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.

NatashaManzuiga
Occasional Contributor

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

0 Kudos