Pregunta

I am developing an application with Google plus. Hence I need an API key. I have generated the key in API console. Now using that key I am going to access some data from Google+ using JavaScript in JSON. But in this method my API key will be publicly visible. Is it OK to share it?

Some information I got from here https://developers.google.com/console/help/#UsingKeys

¿Fue útil?

Solución

Having API Keys public for client-side applications can't be avoided. To make sure no other people can (ab)use your API Key you can limit your API Key in the API console, so that it can only be used from your own domain, by defining "allowed referers"

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top