Select to view content in your preferred language

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

5907
10
08-15-2016 09:27 AM
MichaelPorter1
Occasional Contributor

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... ) . 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

Tags (3)
0 Kudos
10 Replies
DM_GISServices
Occasional Contributor

I've also started having this issue with all browsers.  Can someone post a solution?

0 Kudos