Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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 am trying to figure out a CORS header or cross domain issue but to no avial. We have an OpenLayer application hosted on a Linux server.
However, it calls a WMS service that is hosted on a Windows Server created through ArcGIS Server. The request goes out via an AJAX call but never comes back.
The outgoing request looks like this:


I have verified this is something to do with a CORS header or cross domain I think because I took the same OpenLayers site and put in on the Windows server and it works. I have tried a couple of thing like putting a crossdomain.xml in a couple of places on the Windows server but had no luck. Any help would be greatly appreciated.

Thanks, Derek

share|improve this question

marked as duplicate by Devdatta Tengshe, blah238, iant, R.K., Aragon Mar 5 '13 at 13:26

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 2 down vote accepted

The Usual method of doing cross domain requests in OpenLayers is to use a Proxy file.

Please see this answer on how to use a Proxy File.

share|improve this answer
Thanks for you reply Devdatta. Would I put the proxy host on the Linux (where the OpenLayers site lives) or the Windows WebServer (where the WMS web services live)? – geo derek Mar 3 '13 at 17:25
You need to place the proxy on the linux server. – Devdatta Tengshe Mar 4 '13 at 1:44
Thanks it worked. – geo derek Mar 5 '13 at 2:11

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