mapbox / mapbox/mapbox-gl-geocoder

Supply referrer in API requests

Open
#271 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged bug
Dominant language
JavaScript
Stars
388
Forks
181
PR merge metrics
No merged PRs in 30d

Description

domain-restricted API tokens need a referrer URL to work properly. Safari 12.1.0 currently throws a `403: Forbidden` without one.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing where the geocoder constructs requests to the Mapbox Geocoding API and reproduce the failure with a domain-restricted token in Safari 12.1.0. Done means API requests supply a referrer URL and no longer receive a 403 response.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.