[openstreetmap/openstreetmap-website] Move OAuth requests to fetch (PR #5685)
Marwin Hochfelsner
notifications at github.com
Sun Feb 16 12:20:18 UTC 2025
@hlfan 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?", {
Doesn't - copy-pasting butterfingers...
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5685#discussion_r1957312591
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5685/review/2619613652 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250216/e595a2ab/attachment.htm>
More information about the rails-dev
mailing list