zoukankan      html  css  js  c++  java
  • arcserver 跨域问题

    http://resources.arcgis.com/en/help/rest/apiref/config.html#jcrossOriginAccess
    http://enable-cors.org/server_iis7.html

    跨域问题:
    XMLHttpRequest cannot load http://10.19.1.59/ArcGIS/rest/services/mapWGS/MapServer/?f=json. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.

    http://forums.arcgis.com/threads/78905-GeometryServic-Buffer-Task-amp-Access-Control-Allow-Origin?p=277900#post277900 4楼

    II7
    在服务器端 C:InetpubwwwrootArcGIS estWeb.Config 和 C:InetpubwwwrootArcGISServicesWeb.Config 中添加以下段落
    <system.webServer>
        <httpProtocol>
          <customHeaders>
            <add name="Access-Control-Allow-Origin" value="*"/>
          </customHeaders>
        </httpProtocol>
    </system.WebServer>
    II6
    IIS下ArcGIS右键'属性','HTTP头'在'自定义HTTP头'中添加头名'Access-Control-Allow-Origin',值'*'

  • 相关阅读:
    JS 寻路算法
    Fireworks基本使用
    html基础知识汇总(二)之Emmet语法
    JS函数式编程
    Web前端导航
    CSS样式一
    选择器的分类
    框架集
    表单标签元素
    图像热点&图像映射
  • 原文地址:https://www.cnblogs.com/messipapa/p/4681725.html
Copyright © 2011-2022 走看看