FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
130 stars 26 forks source link

Place API google key reveal in chrome #4871

Open sergedahdouh opened 1 week ago

sergedahdouh commented 1 week ago

Can we access your project?

Current Behavior

Hello, When I add the place api widget and add the api for Google Maps in the setting, then the api will be revealed in the Chrome browser. I tried to restrict it to the website only but it is not working, giving me an error that occurred when getting the place response: API keys with referer restrictions cannot be used with this API.

Expected Behavior

hello, the api key should be shown in chrome

Steps to Reproduce

1) create a page 2) add place picker widget 3) add the api key 4) publish 5) Inspect the console

Reproducible from Blank

Bug Report Code (Required)

IT4ol/Lcw491xLRG1r6JKvlVhSQRJm17R4IZiMpBcykbCJz0BIgEf/Skck5vZrykdAhfPk60oD0x7Pfqv4TDCu0CYEidR6Vx/7gNTj3hTmWWMM2OC5GRfW1QDeNjfm6eyqWNrB0nItFedHwa3znzOue+ZD3rJoDGOVUZR86bKdeK2SrDX1iXc2URm05KZDPz

Visual documentation

Screenshot 2024-11-10 at 21 33 52

Environment

- FlutterFlow version: v5.0.8+
- Platform: mac
- Browser name and version: chrome
- Operating system and version affected: os

Additional Information

this issue is very critical as we cant deploy the web with google map

Alezanello commented 1 week ago

Hello!

The Google Maps API Key generated by a Firebase Project is linked exclusively to that specific project. This means that even if someone else gains access to that key, the API would only function within the context of that particular Firebase project. This setup prioritizes security by limiting its usage to the project level, rather than solely restricting access to specific URLs. You can find more details here: Firebase API Keys Documentation.

sergedahdouh commented 1 week ago

Thank you for replying. So you mean I use the API key generated from Firebase? and is enough

Screenshot 2024-11-12 at 20 06 35
sergedahdouh commented 1 week ago

actually, is not correct, as i have tested the same api with another project, not same firebase and is work

github-actions[bot] commented 2 days ago

This issue is stale because it has been open for 7 days with no activity. If there are no further updates, a team member will close the issue.