[openstreetmap/openstreetmap-website] Move OAuth requests to fetch (PR #5685)
Tom Hughes
notifications at github.com
Sun Feb 16 12:01:28 UTC 2025
@tomhughes commented on this pull request.
> @@ -34,17 +34,17 @@ OSM.NewNote = function (map) {
});
function createNote(location, text, callback) {
- $.ajax({
- url: "/api/0.6/notes.json",
- type: "POST",
- oauth: true,
- data: {
+ fetch("/api/0.6/notes.json?", {
Why does the URL need a `?` on the end here?
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5685#pullrequestreview-2619609470
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5685/review/2619609470 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250216/199a24d1/attachment.htm>
More information about the rails-dev
mailing list