[OpenLayers-Users] Request & ProxyHost Question
tschaub at opengeo.org
Wed Jan 21 04:29:29 EST 2009
> Hi all,
> I am considering doing my getLegend requests via XMLHTTPRequest instead of
> img.src and have run into the common problem of cross-site scripting errors.
> Does someone have an example on how to work around this issue using a
> proxy-host or something else? Out of interest, what does OL use to load the
> map images from a WMS? Does it use the OpenLayers.ProxyHost?
The source for image tiles is set via the src attribute on Image
objects. That is, img.src = "foo.png".
Unless you are relying on the data url scheme (not in IE < 8 ) , how
do you plan on using the image data you get from your XMLHttpRequest?
Referrer spoofing and url caching?
If you want to set up a proxy and use OpenLayers.ProxyHost, see if the
FAQ helps .
> Thank you in advance!
OpenGeo - http://opengeo.org
Expert service straight from the developers.
More information about the Users