Andreas Hocevar wrote: > stash wrote: > >> thanks for your answer. I copied it in the right directory now and i added >> localhost to my hostnames. But when I launch one of the examples the wfs is >> not shown. >> >> I always get the following error. >> XMLhttpRequest >> Access denied >> >> I think thats because of the proxy but I don't know how to solve it. >> >> > > No, this is because you have a missing (or incorrect) > OpenLayers.ProxyHost setting in your example. > > In a script tag after you include OpenLayers.js in your example html > page, add: > > OpenLayers.ProxyHost="/geoserver/rest/proxy"; >
The above should read OpenLayers.ProxyHost="/geoserver/rest/proxy?url="; Regards, Andreas. -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
