[OSM-dev] detect running JOSM from web pages
jochen at remote.org
Thu Jul 29 07:07:22 BST 2010
On Thu, Jul 29, 2010 at 01:03:52AM +0200, Stephan Knauss wrote:
> I extended JOSM RemoteControl to provide protocol version information.
> Besides the possibility for clients to choose a compatible command set
> this enables web pages to query for a running JOSM.
> Because of restrictions due to same origin policy this was not possible
> with the existing plugin. RemoteControl now implements CORS (simple
> requests without preflight) as well as jsonp for the version check.
> I implemented a live demo on the cuisine map. In the upper right corner
> will be an edit button in case a running RemoteCotnrol is detected.
> The new API command is documented on the wiki:
> Hope somebody considers this useful.
I don't like the idea that every web page can now find out whether I run
JOSM and which version it is.
The CORS stuff in the plugin should at least be optional (and the default
should be OFF)!
Jochen Topf jochen at remote.org http://www.remote.org/jochen/ +49-721-388298
More information about the dev