The canonical way of handling API keys is to set up a backend on your server which adds the keys and acts as a proxy. There is no secure way to hide API keys in Javascript apps on the browser.

https://www.rockyourcode.com/secret-keys-in-react/

-geir


On 8/30/19 09:21, divya mittal wrote:
Hi,

I have started using openlayers recently and using Bing maps as baselayer.

While consuming Bing Maps I need to specify the key at the client side. Is
there a way out to hide the Bing map key ?

Please advise.

Thanks !
_______________________________________________
Users mailing list
us...@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to