Flash crossdomain.xml on Tomcat 8 at port 8080

514 Views Asked by At

On my local Tomcat 8 I added crossdomain.xml as explained here:

Where do I put a crossdomain XML in Tomcat?

I did the check and I can see

http://localhost:8080/crossdomain.xml

from the browser.

But when I try to send a request from an swf in one of the web projects, it looks like it tries to find

http://localhost/crossdomain.xml

How do I tell Flash to search the file in the 8080 port?

1

There are 1 best solutions below

3
gMirian On

Try using:

Security.loadPolicyFile("http://localhost:8080/crossdomain.xml");

Also try to allow ports in crossdomain.xml itself

<allow-access-from domain="*" to-ports="*"/>