AnsweredAssumed Answered

No 'Access-Control-Allow-Origin' Error from AGOL

Question asked by michael_porter on Aug 15, 2016
Latest reply on Sep 15, 2017 by dmgissvcs

When I try and load an application from AGOL - I get the following error in the console:

 

XMLHttpRequest cannot load http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer?f=json. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://[domain].maps.arcgis.com' is therefore not allowed access.

 

where [domain] is my company domain. The problem occurs only in Chrome and only in certain instances of Chrome. Security folk swear all installs are the same.

 

I see the threads talking about this when you are writing the JS (i.e. How to use Cross Origin Resource Sharing (CORS) from ArcGIS API Javascript Application? - Geographic Information Systems… ) . Any guesses or suggestions on how to handle / troubleshoot when you are using an AGOL app? Is it possible that this is a red herring and that it is actually masking another problem?

 

Thanks

Outcomes