I have problems with cross domain, I call GetFeatureInfo in Leaflet API. I was looking for solution and saw that proxy could solve that problem. Can you help me how to set it up? I have geoserver run on Tomcat7 (ubuntu).


  • the only difference between your question and any of the other proxy questions is that you are using leaflet and not openlayers. The solutions should all work for you as is. – Ian Turton Aug 14 '14 at 13:48
  • It's not the same, OpenLayers has built in Proxy method, and Leaflet doesn't have! – againstflow Aug 14 '14 at 13:50
  • I have no clue about Tomcat but if it is possible to manipulate files in the GeoServer directory, you could try the two steps described here: apps.csdila.ie.unimelb.edu.au/index.php/… After adding those files, I had no more cross-domain issues when doing a GetFeatureInfo on a different GeoServer port than my webserver uses. – Dirk May 11 '15 at 15:26