Hi Andrés, Not sure what's hapenning but for sure Openlayers proxy should work. Are your configurations of the proxy correct (you must include localhost:8080 in your allowed hosts)?
Cheers, Hugo 2011/2/18 Andrés Maneiro <[email protected]> > Hello there, > > I'm going through the examples to get familiar with geoext and extJS. > Particulary, I've been trying to test the two related to inspect > capabilities from a WMS server: > > http://api.geoext.org/1.0/examples/wms-tree.html > http://api.geoext.org/1.0/examples/wms-capabilities.html > > Both examples run against a xml file which (I guess) is a xml reponse > from a WMS server. I've tried to accomplish the same using directly a > WMS server. Unfortunately, with no result. Here the code I'm playing with: > > - javascript: http://pastebin.com/MysG8ZBJ > - html: http://pastebin.com/7JaBPrAP > > I'm stuck at the proxy part. When I run the code above, I get this > response: > > XMLHttpRequest cannot load > > http://localhost:8080/geoserver/wms?_dc=1298028418553&service=WMS&request=GetCapabilities > . > Origin http://localhost is not allowed by Access-Control-Allow-Origin. > > I'm running my html/js app with OpenLayers in localhost:80 and the WMS > server (geoserver) is running at localhost:8080 > > For that, I have configured a proxy for OL which seems to run ok since > I've executed some tests on OL with success. Seems that the same proxy > is not working with geoext. > > So, the question is: Do I need another proxy for geoext? Some pointers > to that? > > best, > amaneiro > _______________________________________________ > Users mailing list > [email protected] > http://www.geoext.org/cgi-bin/mailman/listinfo/users > -- Hugo Martins LabNT - ISEGI UNL Campus de Campolide 1070-312 Lisboa N 38°43'56.84", W 9°9'35.74"
_______________________________________________ Users mailing list [email protected] http://www.geoext.org/cgi-bin/mailman/listinfo/users
