Closed freenerd closed 9 years ago
In Mapbox.js we use https://github.com/mapbox/corslite for ajax requests. Since Mapbox.js is a dependency of this leaflet plugin here anyways, we should also use corslite here.
@freenerd are there POST requests in corslite? It mentions only GET
POST
GET
@planemad ah crap, I forgot. right. i think we'll stay with xhr then, since it seems most lightweight.
In Mapbox.js we use https://github.com/mapbox/corslite for ajax requests. Since Mapbox.js is a dependency of this leaflet plugin here anyways, we should also use corslite here.