Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a problem with Cross-Origin-Requests invoked by the ArcGIS Javascript API.

I'm able to access my web app without any issues if I use localhost:8080. But a REST call (by the ArcGIS JS API) fails if I use mymachine.local.

The exportImage REST call works properly but the query REST call invoked by featureLayer.selectFeatures fails with a Not allowed by Access-Control-Allow-Origin error.

I've gone through but I don't think there's a problem with the CORS setup as one request goes through and the other one fails.

share|improve this question

Images are allowed in cross-domain requests, as are some other types of resource. You can read some of the limitations and reasons behind them here

share|improve this answer
Okay. Everything works fine in IE 9 as well as Firefox. Only chrome doesn't let the query request through. – Gautham Badhrinathan Mar 12 '13 at 7:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.