perliedman / leaflet-routing-machine

Control for routing in Leaflet
https://www.liedman.net/leaflet-routing-machine/
Other
1.08k stars 350 forks source link

Add basic authentication capatibility #604

Closed grib0 closed 4 years ago

grib0 commented 4 years ago

Hi there,

Would it be possible to add Basic Auth capatibility to this plugin ? I looked at the code and found nothing to add credentials nor header request parameter to the serviceUrl.

Regards,

perliedman commented 4 years ago

Use can pass the option requestParameters to the OSRMv1 instance to add request parameters. But there is no built-in support for adding request headers.