Access-Control-Allow-Origin and ArcGIs Online

2836
1
Jump to solution
10-17-2013 05:00 AM
KaiB_
by
New Contributor II
Hello everybody,

I`m still trying to implement an working ArcGIS-Server-Web-Service in AGO, but if I`m registered with my user data in AGO
I get that message from my JavaScript-Web-Analyzer:

XMLHttpRequest cannot load http://xxxxx.yyyyy.de/ArcGIS/rest/info?f=json. Origin https://zzzzzz.maps.arcgis.com is not allowed by Access-Control-Allow-Origin.

Can anybody give me a hint what to do please?


If I`m not signed in in my AGO-account it works well.

Thank you very much, Kai
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
KaiB_
by
New Contributor II
All right, I found the solution now, to:

to C:\inetpub\wwwroot\ArcGIS\rest\Web.Config

I inserted

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

Then it`s important that the browser supports CORS (http://enable-cors.org/)
I had no Luck with Firefox 24, but it worked with Chrome 30, everything fine now 🙂

View solution in original post

0 Kudos
1 Reply
KaiB_
by
New Contributor II
All right, I found the solution now, to:

to C:\inetpub\wwwroot\ArcGIS\rest\Web.Config

I inserted

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

Then it`s important that the browser supports CORS (http://enable-cors.org/)
I had no Luck with Firefox 24, but it worked with Chrome 30, everything fine now 🙂
0 Kudos