Leaflet / Leaflet.VectorGrid

Display gridded vector data (sliced GeoJSON or protobuf vector tiles) in Leaflet 1.0.0
598 stars 194 forks source link

Enable cookies with the fetch API. #169

Closed dbauszus-glx closed 6 years ago

dbauszus-glx commented 6 years ago

Is there a way to enable cookies in the fetch API which is bundled with VectorGrid?

I just ran into an endpoint which requires tile requests to have a cookie for authorization.

IvanSanchez commented 6 years ago

https://stackoverflow.com/questions/34558264/fetch-api-with-cookie

dbauszus-glx commented 6 years ago

Nice. Is it possible to pass the credentials: include option through VectorGrid to Leaflet or is this something I need to enable in Leaflet itself?

dbauszus-glx commented 6 years ago

I guess it is this one... https://github.com/Leaflet/Leaflet/pull/6016