[OpenLayers-Users] Overpass API request not working in OL 2.12
Eric Lemoine
eric.lemoine at camptocamp.com
Mon Jul 2 07:56:22 PDT 2012
On Mon, Jul 2, 2012 at 4:14 PM, jevelin
<juergen.witte at kuestenschmiede.de> wrote:
> Hello,
>
> the example http://overpass-api.de/open_layers_fixed.html is not working any
> more when it is executed on my local web server. On overpass-api.de itself
> it is still working. It is also working on my local server when I use OL2.11
> instead of OL2.12.
>
> It looks like an OPTIONS request is sent instead of a GET request when using
> OpenLayers.Protocol.HTTP when the request to overpass-api.de doesn't come
> from the same origin.
>
> Any ideas if this is a bug, or how to work around this?
This is a Same Origin Policy issue. I'd be very surprised that 2.11
and 2.12 behave differently with respect to that.
--
Eric Lemoine
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com
More information about the Users
mailing list