From c7d103ac5424fd5a7774a7529320b909ba824917 Mon Sep 17 00:00:00 2001 From: danieldegroot2 <67521919+danieldegroot2@users.noreply.github.com> Date: Sat, 21 Oct 2023 17:16:01 +0200 Subject: [PATCH] Switch to api.openstreetmap.org API host --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index eeb5119..1ae1cd5 100644 --- a/index.js +++ b/index.js @@ -772,7 +772,7 @@ document.addEventListener("DOMContentLoaded", function () { let n = "Bearer " + localStorage.getItem("openstreetmap_token"); // get osm account username - fetch("https://www.openstreetmap.org/api/0.6/user/details", { + fetch("https://api.openstreetmap.org/api/0.6/user/details", { headers: { Authorization: n, }, @@ -3248,4 +3248,4 @@ document.addEventListener("DOMContentLoaded", function () { window.PrintControl = new L.Control.BigImage().addTo(map) -}); \ No newline at end of file +});