XMLHttpRequest cannot load https://services.arcgisonline.com/ArcGIS/rest/info?f=json

3525
4
06-06-2013 10:10 AM
NathalieNeagle
New Contributor III
When my app loads I'm getting a error


XMLHttpRequest cannot load https://services.arcgisonline.com/ArcGIS/rest/info?f=json.  Origin https://myserver is not allowed by Access-Control-Allow-Origin


Resource interpreted as Script but transferred with MIME type text/plain: "https://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer?f=json&callback=do...". serverapi.arcgisonline.com/:34
_cc3 serverapi.arcgisonline.com/:34

How do I stop this from happening?
0 Kudos
4 Replies
JohnGravois
Frequent Contributor
the short answer is, you can't resolve the error.  these are normal messages to see in the console when working with any web server that does not support CORS, based on our check to see if it can be utilized.
0 Kudos
MarkMurphy1
New Contributor III
Hi John,

I am a complete neophyte to deveopling and have created an app that pops up this error message, at least when being debugged on a desktop version of Safari.  On some platforms the app works fine, and in others it will start to draw a tile served by esri, but then either black or gray out.  Could this error be an indication of the behavior I am seeing or does this error really not matter?

Thanks,
Mark
0 Kudos
JohnGravois
Frequent Contributor
@mark,

the failed request to https://services.arcgisonline.com/ArcGIS/rest/info?f=json is not a request for a tile, but rather a request to the root of ArcGIS Server itself for some basic information in JSON. 

unfortunately, this means it doesn't have anything to do with the problem in your app.
0 Kudos
MarkMurphy1
New Contributor III
Hi John,

Thanks for taking the time to respond.  It doesn't solve my app problem but it does prevent me from wasting time chasing THAT windmill...

Cheers!
0 Kudos