[OSM-talk] Taking OSM usernames and passwords on other sites (eg Freemap)
crschmidt at metacarta.com
Wed Mar 28 14:58:54 BST 2007
On Wed, Mar 28, 2007 at 02:24:30PM +0100, Robert (Jamie) Munro wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> Nick Whitelegg wrote:
> > Hello everyone,
> > (cc to Steve)
> > I'd like to extend the POI editor (announced yesterday) so that users can
> > contribute polygons (e.g. outlines of woods and lakes) to OSM through an
> > OpenLayers interface on Freemap, using the new OpenLayers vector layer.
> > However to make it as easy and hassle free for users to use, I'd prefer users
> > sign in with their *OSM* usernames and passwords rather than have to signup
> > for a Freemap account. Freemap would obviously not "steal" the usernames and
> > passwords but just send them straight to OSM for authentication.
> Could you submit to the API from the client side using AJAX? Then only
> the browser would know the Username / Password being used. Freemap
> wouldn't care.
You can't make an AJAX request to a remote site. See
http://en.wikipedia.org/wiki/Same_origin_policy . So, webpages hosted on
freemap.co.uk can't post (actually, PUT) data to the OSM server on the
More information about the talk