Closed FilliTech closed 1 day ago
Hello!
I wasn’t able to replicate the issue on my end. It looks like you're hosting the project on Firebase rather than FlutterFlow. In that case, you'll need to add a proxy to the Place Picker API call within your code before deploying it to Firebase hosting.
When hosted on FlutterFlow, this feature works as expected. Here’s a link to a recently published project via FlutterFlow where you can test it:
https://qa-2935-99mbtu.flutterflow.app/
The project is hosted on Firebase, on FlutterFlow it works as expected. The problem is that I am using the flutterflow place picker component so I can not, as of my knowledge, add a proxy to the api call.
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.
Hello, and I apologize for the delayed response. In your Firebase project code, you can navigate to /lib/flutterflow/flutter_flow_place_picker.dart
. Within this file, add the proxy to the baseUrl
before widget.proxyBaseUrl
.
Closing this issue since we haven't heard back from you. If you are still facing the problem please submit a new issue. Have a great day!
Can we access your project?
Current Behavior
When I attempt to select a location using the flutterflow place picker, a CORS error occurs.
Expected Behavior
It should work properly as it does if hosted on flutterflow.
Steps to Reproduce
Reproducible from Blank
Bug Report Code (Required)
IT4eiPLqw4t1pbxH7qXxbcFFiSQvHEw7aIIZke5+ZAwbG4z1PbNzY+j+TGZuOLDid2xiPFmWgm00/vDJk/PxD8c4FByJbbZjzJdcbgH/Qj2VeJClBs+sYUFCQOdhJmKOzpuZnBUkJulZR1Ej1GGEJeqiaHLYNr6xC1c/APilMrDPn2CfLgDKGn0Jg1ZSfCvr
Visual documentation
Environment
Additional Information
No response