mapbox-gl-js icon indicating copy to clipboard operation
mapbox-gl-js copied to clipboard

Setting cookie for image source

Open huaruiw opened this issue 9 years ago • 1 comments

mapbox-gl-js version: current

ImageLayer uses utils/ajax to make the request but it does not include cookies in the header. This is a problem because I need to retrieve images off of CloudFront and require a signed cookie. Setting xhr.withCredentials = true fixes the problem https://github.com/huaruiwu/mapbox-gl-js/commit/beb2b61ac2c538fad91f36769b5498271c728553.

huaruiw avatar May 09 '17 21:05 huaruiw

Thanks for the request. Folding this in with the same request in #3874.

jfirebaugh avatar May 09 '17 21:05 jfirebaugh