读书人

Flex跨域有关问题

发布时间: 2012-10-24 14:15:58 作者: rapoo

Flex跨域问题

From ESRI:

?

?The client browser will then download the SWF file. After this point, the user might not connect back to this Web server at all but rather directly to the servers containing map content and tasks. Note that if your web application is not hosted on the same server as the ArcGIS Server, you will have to have a crossdomain.xml on the ArcGIS Server.

About crossdomain.xml

To access data from a different server than the one hosting your Flex application, the remote server needs to have a cross-domain file in the root directory. For security reasons, the Web browser cannot access data that resides outside the exact Web domain where the SWF file originated. However, Adobe Flash Player can load data across domains if permission is granted from the server. This is accomplished by including a small crossdomain.xml file on the remote server that permits Flash to connect to services on that server. For instance:

Deploying crossdomain.xml

To deploy the cross-domain file on ArcGIS Server, see the instructions specific to your platform.

读书人网 >flex

热点推荐