[openstreetmap/openstreetmap-website] Move OAuth requests to fetch (PR #5685)

Tom Hughes notifications at github.com
Sun Feb 16 13:22: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?", {

No problem. I can fix it when merging as there are conflicts to resolve anyway.

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

Message ID: <openstreetmap/openstreetmap-website/pull/5685/review/2619627298 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250216/5b6abd73/attachment.htm>


More information about the rails-dev mailing list