john.c.cartwright

Access-Control-Allow-Origin and 3.0

Discussion created by john.c.cartwright on Jun 19, 2012
Latest reply on Mar 4, 2013 by aconnolly
Hello All,

I'm finding that when using 3.0, I get the following error:

XMLHttpRequest cannot load http://server.arcgisonline.com/ArcGIS/rest/info?f=json. Origin http://localhost is not allowed by Access-Control-Allow-Origin.

Simply switching the API back to 2.8 eliminates the problem.  I've tried configuring both CORS and the proxyUrl, but neither helps.

Can someone please provide me some guidance here?

Thanks!

--john

Outcomes