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