The API key must be kept secret, right?


#1

So I shouldn’t put it into a js file that gets delivered to a browser. Which means the openrouteservice should be used server side only?
Sorry for asking such silly things, but wasn’t able to find anything about that topic in the docs, nor on github, stackoverflow, or Google.

Cheers!


#2

If you don’t want to expose it to the user, that is correct, yes.


#3

Thanks for your quick answer Timothy!
Maybe you should think about implementing an API auth mechanism like google is using with their maps api.
Their api-keys can be exposed on websites.


#4

Yep, we have been thinking about that, also. Basically we want to enable every user to create a whitelist of domains which are allowed for each token.