AnsweredAssumed Answered

Access-Control-Allow-Origin

Question asked by empicard on Aug 28, 2012
Latest reply on Oct 18, 2013 by kai_der_kaefer
[HTML]
XMLHttpRequest cannot load http://server.arcgisonline.com/ArcGIS/rest/info?f=json. Origin http://<myserverIP> is not allowed by Access-Control-Allow-Origin.
[/HTML]

I get this in the console.
I've added

<system.webServer>    <httpProtocol>      <customHeaders>        <add name="Access-Control-Allow-Origin" value="*" />      </customHeaders>    </httpProtocol>  </system.webServer>

to C:\inetpub\wwwroot\ArcGIS\rest\Web.Config
and restarted server, as instructed by http://enable-cors.org/ and http://alpascual.com/post/2011/06/08/Enabling-Cross-Origin-Resources-in-IIS-7.aspx

I still get the same error.

AGS server 10.0 JSAPI 3.1
Help?

Outcomes