ngGAPI icon indicating copy to clipboard operation
ngGAPI copied to clipboard

Secure apiKey & clientId

Open AndreiSirbu opened this issue 11 years ago • 1 comments

Hello,

I'm just starting to develop in AngularJS and I have a question(sorry if it's idiotic): Is there a way to prevent the end user to find the aapiKey & clientId values from the js files?

Thanks.

AndreiSirbu avatar Dec 06 '14 17:12 AndreiSirbu

No. Security comes from the fact that you have restricted the domains that can use your javascript files in the Google Developer Console. First, you set up your project, then you set up ways that your project can access google API's. When setting up access for a new Browser Application, you would set up your domain access in the REFERERS field.

jcwatson11 avatar Jan 28 '15 22:01 jcwatson11