1.使用flex访问地图服务时,需要在地图服务器的IIS根目录(默认为C:\inetpub\wwwroot)下添加"crossdomain.xml"跨域策略文件,其内容为:
  <?xml version="1.0" ?>
  <!DOCTYPE cross-domain-policy (View Source for full doctype...)>
  <cross-domain-policy>
      <allow-access-from domain="*" to-ports="*" secure="true" />
      <allow-http-request-headers-from domain="*" headers="*" secure="true" />
  </cross-domain-policy>

参考ArcGIS API for Flex


2.如果IP地址是经过内网映射到公网的,还需要在映射的服务器根目录添加“crossdomain.xml”文件。

相关文章:

  • 2021-08-16
  • 2022-12-23
  • 2021-09-25
  • 2022-12-23
  • 2021-11-29
  • 2021-09-06
  • 2022-12-23
  • 2021-05-26
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-06
  • 2021-04-18
  • 2021-05-16
  • 2021-09-17
  • 2021-07-24
相关资源
相似解决方案