AnsweredAssumed Answered

CORS error - not the normal sort

Question asked by amarsden on Nov 15, 2013
Latest reply on Nov 17, 2014 by Paulcrickard
This Cross Origin thingy, AKA CORS has been discussed many time, however I have read those threads and none covers exactly what I am seeing.

I am only seeing this issue when I make a request for a legend.  The error doesn't always happen.  At 3.5 it would happen a few times, 2 out of 10 start ups.  When it fails my TOC breaks.  So I was naughty and put a loop in to simply try again.  The users didn't notice.

Now, using 3.7 and IE8 I get this every time, and of course my loop goes on forever.

I get
XMLHttpRequest cannot load http://ARGISserver/arcgis/rest/services/LIVEinternal/aerials/MapServer/legend?f=json. The 'Access-Control-Allow-Origin' whitelists only 'http://appURL'. Origin 'http://appURL_dev' is not in the list, and is therefore not allowed access. (index):1
k {stack: "Error: Unable to load http://ARGISserver/arcgis/rest???ev/arcgis_js_api/library/3.7/3.7/init.js:3570:29)", message: "Unable to load http://ARGISserver/arcgis/rest/servic???nternal/aerials/MapServer/legend?f=json status: 0", response: Object, status: 0, responseText: ""???}

So, have I forgotten that I've set one domain onto a whitelist somewhere?  I can't recall doing so.  Or is it a IE policy stting I have no control over?