[OSM-dev] cross-domain xmlhttprequest

John Smith deltafoxtrot256 at gmail.com
Tue Dec 22 12:12:35 GMT 2009


2009/12/22 Peter Körner <osm-lists at mazdermind.de>:
> John Smith schrieb:
>> 2009/12/22 Stephan Plepelits <skunk at xover.htu.tuwien.ac.at>:
>>> Does anybody see a problem adding these HTTP-Header-line to the
>>> OpenStreetMap-API and the Nominatim-API?
>>
>> If you don't want to wait for others to update their scripts you could
>> proxy the request via a php script... This would have the side benefit
>> of working for older browsers too...
>
> That's the way i'll do it: read the xml with php, preprocess it,
> dropping all data you don't need, cache when appropriate and return as json.
>
> It would be cool to have suche a proxy for the complete osm api..

Just make a 1:1 proxy script then it will be a complete osm api ;)




More information about the dev mailing list