geomatico / maplibre-cog-protocol

Custom protocol to load Cloud Optimized GeoTIFFs (COG) in Maplibre GL JS
http://labs.geomatico.es/maplibre-cog-protocol/
MIT License
51 stars 6 forks source link

Issue with fetch api #13

Closed callmeahab closed 1 hour ago

callmeahab commented 2 hours ago

Hi when trying to load a COG like in your documentation, I get the following error:

Cross origin requests are only supported for HTTP.
Fetch API cannot load cog://http//localhost:4875/cog_cea.tif due to access control checks.

Am I missing some setup step? Also not sure how relevant, but I'm trying to load this file from a tauri app on macos.

callmeahab commented 1 hour ago

I forgot to add the COG protocol, figured it out seconds after posting, apologies for opening an issue :D