http://gis.stackexchange.com/questions/86206/how-to-cors-enable-arcgis-server-10-2-1-to-access-rest-services-without-using-pr
比如,在你的arcgis server for javascript api网站中跨域访问WebApi的资源(取一些json格式数据?),差不多懂了