thek04

Cross domain error when loading basemap?

Discussion created by thek04 on Aug 13, 2013
Latest reply on Oct 1, 2013 by jdkitzmi
I get the following error in my console when I first load my code. I think it is a cross domain error. I have never had one of these before so I have no idea where to begin.

XMLHttpRequest cannot load http://services.arcgisonline.com/ArcGIS/rest/info?f=json. Origin null is not allowed by Access-Control-Allow-Origin.
Resource interpreted as Script but transferred with MIME type text/plain: "http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer?f=json&callback=dojo.io.script.jsonp_dojoIoScript1._jsonpCallback".

I am pulling data into my page using DynamicMapServiceLayer for extra basemap data like townships and sections. I am also using FeatureLayer to pull in the data that I am running my queries and other tasks on.

I also don't have much access to my server to make any changes.

[ATTACH=CONFIG]26679[/ATTACH]

Any ideas on how to correct this error?

Attachments

Outcomes