flutter-mapbox-gl / maps

A Mapbox GL flutter package for creating custom maps
Other
1.03k stars 498 forks source link

Web tiles throwing CORS error #1407

Closed aardrop closed 5 months ago

aardrop commented 6 months ago

I have a public tiling layer in AWS that my application calls, but for some reason, I'm getting CORS issues from it.

Access to fetch at '{tile_url}' from origin 'http://localhost:51667' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

Does anyone know how to fix this?