[openstreetmap/openstreetmap-website] Use $.ajax instead of iframe to make remote control requests (PR #3760)

Anton Khorev notifications at github.com
Mon Oct 24 08:57:05 UTC 2022


The most likely reason is this one described [here](https://josm.openstreetmap.de/wiki/Help/RemoteControlCommands#version):
"For older browsers not implementing [​Cross-Origin Resource Sharing (CORS)](http://en.wikipedia.org/wiki/Cross-Origin_Resource_Sharing)...". Basically for compatibility with really old browsers that weren't as old in 2010 when this code was written.

Changing `src` on elements is a way of making a GET request without caring whether you have the permissions to read its response when you don't care about the response. JOSM just sends back "OK" on success.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/3760#issuecomment-1288679966
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/3760/c1288679966 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20221024/d65d8b11/attachment.htm>


More information about the rails-dev mailing list