I am getting the CORS error
XMLHttpRequest cannot load http://services.arcgisonline.com/ArcGIS/rest/info?f=json.
No 'Access-Control-Allow-Origin' header is present on the requested resource.
Origin 'http://myserver.com' is therefore not allowed access.
when I use the ESRI topo base map in my ArcGIS JSAPI application. The application is hosted on IIS8 (Windows Server 2012 R2)
I am reading the ESRI ArcGIS API for JavaScript Samples CORS buffer There is a suggestion to add the root URL for CORS enabled servers to
esri.config.defaults.io.corsEnabledServers
Can you provide example how to do that?
I am not sure if the problem is on my server/application or the ESRI map server