[OpenLayers-Users] GeoServer Proxy Extension OpenLayers

Andreas Hocevar ahocevar at opengeo.org
Mon Nov 16 11:35:19 EST 2009


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";

Regards,
Andreas.

-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.




More information about the Users mailing list