Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Directions requests made in POST format require access token as part of URL #272

Open
danpat opened this issue Mar 14, 2019 · 0 comments
Open

Comments

@danpat
Copy link

danpat commented Mar 14, 2019

The Directions and Map Matching APIs support submitting requests via HTTP POST when the size of the request is large.

Per https://docs.mapbox.com/api/navigation/#using-http-post, they need the access_token to be part of the URL string, and all other parameters to be part of the POST body.

It looks like the default behaviour of requests is to put the access_token into the POST body, which will lead to authentication failures if a Directions or Map Matching request is submitted via POST.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant