Skip to content

Using a backend with basic http authentification? #316

Description

@SilvrDuck

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions