TomTom key is visible

Hello All,

I am using the tomtom api to have a search field on my html page.
I have followed the instructions (https://developer.tomtom.com/blog/build-different/using-tomtom-maps-java-and-spring) to use the TomTom key in my application.properties file.
The problem is that even in this case, the key is visible to the end user by right clicking on the page.
I am wondering how I can hide this key in some way. I think that is an issue that the key is visible to the user. Isn’t it?

Any help would be appreciated.

You got two options:

  1. simple one - use domain whitelisting
    image
  2. more sophisticated - use proxy for your requests and add API key at proxy (remember that caching is allowed only on client side)