Using a backend with basic http authentification?
SilvrDuck opened this issue · comments
Hi there,
I’m trying to run the front end using a backend for which http requests need to be authorized using basic auth.
I didn’t find any env var to do that, so I just set the following env variable :
OSRM_BACKEND='https://some_user:some_password@my_osrm_url.com'
This does not work though. With Firefox, the request hangs forever, but if I copy the cURL command in a terminal, the login info is in there, and I get the result back from the server.
In Chrome, the cURL command seems to get striped down of the auth info, thus I get a 401 from the server.
Is there a way to do that without going in the front’s code to add some headers?
Thanks in advance.