Select to view content in your preferred language

CrossDomain.xml for Mapservices

3265
5
06-12-2012 12:16 PM
MichaelVolz
Esteemed Contributor
To All ArcGIS Viewer for Flex Developers:

I have an ArcGIS Viewer for Flex application that was created in Arc9.3.1sp1 that needed the crossdomain.xml in order to see the mapservices when viewed remotely from the ArcGIS Server (AGS) server.

I copied the application files without the crossdomain.xml file to a v10 AGS server.  Now I can still see the mapservices.

Is the crossdomain.xml file still needed in v10?
Tags (2)
0 Kudos
5 Replies
RobertScheitlin__GISP
MVP Emeritus
Michael,

   The crossdomain.xml file is needed for the ArcGIS Server and not each individual application that is deployed. So as long as the ArcGIS Server has ONE (a) crossdomain.xml file you will be good to go no matter how many app access the server.

Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow the steps as shown in the below graphic:
0 Kudos
MichaelVolz
Esteemed Contributor
I searched the entire c-drive of my new v10 ArcGIS Server (AGS) server and I could not find a crossdomain.xml file, but I am still able to see the mapservices when accessing the web app remotely away from the AGS server.  How is this possible?

If I remove the crossdomain.xml file from my old v9.3.1 AGS server, I can not see the mapservices when accessing the web app remotely.

So I ask again, is the crossdomain.xml file still needed in the v10 environment?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Michael,

   The crossdomain.xml file is an Adobe Requirement not an ArcGIS requirement. So it does not matter which version of ArcGIS Server you are using you still need on using 10. You should use a http utility like fiddler or charles or firebug to see where the request for the crossdomain.xml is being fulfilled from.
0 Kudos
MichaelVolz
Esteemed Contributor
Robert:

These are these lines of text from Fiddler that show crossdomain.xml.  Would you understand where this crossdomain is originating from as I do not understand?

# Result Protocol Host URL Body Caching Content-Type Process Comments Custom
6 304 HTTP fpdownload.adobe.com /pub/swz/crossdomain.xml 0  text/x-cross-domain-policy iexplore:1356

# Result Protocol Host URL Body Caching Content-Type Process Comments Custom
6 304 HTTP fpdownload.adobe.com /pub/swz/crossdomain.xml 0  text/x-cross-domain-policy iexplore:1356
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Michael,

   No those lines are looking for the crossdomain.xml file from Adobes website so that it can use the swz files. Are there no other crossdomain.xml requests when you have your Flex Viewer App first fire up?
0 Kudos