How to secure my Google Maps Javascript V3 API Key within an Ionic/Cordova App?

前端 未结 2 950
小鲜肉
小鲜肉 2021-01-03 03:58

I am currently developing an Ionic app where I have an embedded Google Map. The Google Maps V3 API recommends using an API key for tracking usage. The thing is when I create

2条回答
  •  北海茫月
    2021-01-03 04:17

    I think the best way to do this is to create a proxy server which use server key to call the API, and where require user login with their userID (if your app need to login) or may be device id. At least you have some control over what is happening.

提交回复
热议问题