jakc
jakc

Reputation: 1171

crossdomain issue with Flex Application

I have a flex application that has a button that calls a URL.
The source of the URL is a location on the same Apache web server as the Flex application.

I have dumped a crossdomain file under webapps and also under ROOT folder:

<cross-domain-policy>
<allow-access-from domain="*"/>
<site-control permitted-cross-domain-policies="all"/>
<allow-http-request-headers-from domain="*" headers="*"/>
</cross-domain-policy>

However, my Flex application is still returning a 2048 error, which I understand to be an issue relating to not having the cross-domain file setup correctly.

Please see this short screencast for more info.

In the long run, I need the tool to be able to open any publically accessible file from several different web servers.

Upvotes: 1

Views: 752

Answers (1)

Jason Sturges
Jason Sturges

Reputation: 15955

Do you need the port? Looks like you're on 8080 -

<cross-domain-policy>
<allow-access-from domain="*" to-ports="80,443,8080"/>
<site-control permitted-cross-domain-policies="all"/>
<allow-http-request-headers-from domain="*" headers="*"/>
</cross-domain-policy>

Upvotes: 1

Related Questions