<p></p>
<p dir="auto">now it worked, the following header was missing:<br>
<a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept" rel="nofollow">https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept</a></p>
<div class="highlight highlight-source-js"><pre><span class="pl-k">const</span> <span class="pl-s1">headers</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">Headers</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">Authorization</span>: <span class="pl-s1">n</span><span class="pl-kos">,</span>
<span class="pl-c1">Accept</span>: <span class="pl-s">"application/gpx+xml"</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">maybe it would be useful for other developers to store the information in the documentation of the api.</p>
<p dir="auto">thank you for your help.</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/3507#issuecomment-1079653118">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLIWXCSOHRSR4ATINVDVB3NW3ANCNFSM5RKZAJSA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLOOGSSMFGB7FY5FNS3VB3NW3A5CNFSM5RKZAJSKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOIBNDF7Q.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/3507/1079653118</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/3507#issuecomment-1079653118",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/3507#issuecomment-1079653118",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>