<p></p>
<h3 dir="auto">Problem</h3>
<p dir="auto">My site (and app) are uploading the recording to OSM by default to enrich OSM with the data people are collecting.<br>
I would like to avoid the need to go through my backend to fetch a GPX file (private one).<br>
Currently the api returns a 302 redirect, which can't be handled by the browser since there's an authentication header needed in order to get the route (OAuth 2).</p>
<h3 dir="auto">Description</h3>
<p dir="auto">I would like to get the GPX trace in the browser outside openstreetmap.org using the OSM api endpoint to allow seeing it, editing it if needed and share it with other people outside the OSM website.</p>
<p dir="auto">The API exists, but since there's a redirect there, it's impossible to fetch it in the browser without going through a proxy...</p>
<h3 dir="auto">Screenshots</h3>
<p dir="auto"><a href="https://github.com/user-attachments/assets/afd5c75a-f443-4d46-99ee-143e7e5b2fbd">image.png (view on web)</a></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/5639">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLNT3T437OENALVRRAD2O6VERAVCNFSM6AAAAABWZEQ5NSVHI2DSMVQWIX3LMV43ASLTON2WKOZSHA2DAOJRGI2DKNI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLJCKZFCKLUA6WJEXM32O6VERA5CNFSM6AAAAABWZEQ5NSWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHKSVHCI4.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/issues/5639</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/5639",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/5639",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>