Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CORS error while loading satellite style #13432

Open
RomanIlkiv opened this issue Mar 12, 2025 · 0 comments
Open

CORS error while loading satellite style #13432

RomanIlkiv opened this issue Mar 12, 2025 · 0 comments

Comments

@RomanIlkiv
Copy link

RomanIlkiv commented Mar 12, 2025

mapbox-gl-js version:1.12.0
browser:Chrome/133.0.0.0

Steps to Trigger Behavior

  1. use Default public token
  2. setup style change as shown in documentation
  3. use mapbox://styles/mapbox/satellite-streets-v11
  4. satellite isn't loaded (tiles isn't loaded and CORS error in console)

Access to fetch at 'https://api.mapbox.com/v4/mapbox.satellite/0/0/0.webp?sku=1014hvAH25f2J&access_token={access_token}' from origin 'MY_DOMAIN' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.

The problem exist only with satellite-streets-v11 because mapbox://styles/mapbox/light-v10 and mapbox://styles/mapbox/dark-v10 are working without problems with the same token and the same domain

Expected Behavior

Satellite loaded

Actual Behavior

Black screen and CORS errors

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

No branches or pull requests

1 participant