fluttercommunity / flutter_google_places

Google Places - Google places autocomplete widgets for flutter. No wrapper, use https://pub.dev/packages/google_maps_webservice. Maintainer: @juliansteenbakker
https://pub.dev/packages/flutter_google_places
Other
303 stars 415 forks source link

How can you restrict the Google Places API key? #131

Closed Flawe closed 3 years ago

Flawe commented 4 years ago

Since we need to use a web key, it's not possible to restrict it to the app, and I don't believe the referrer is being set to a particular domain. This means we have to use an unrestricted key that anyone could extract and use?

zeshuaro commented 3 years ago

You can use an app restricted API key. I've also made a comment on a related issue https://github.com/fluttercommunity/flutter_google_places/issues/127#issuecomment-751307160.