Dammyololade / flutter_polyline_points

A flutter plugin that's decodes encoded google poly line string into list of geo-coordinates suitable for showing route/polyline on maps
MIT License
107 stars 132 forks source link

Flutter Web - XMLHttpRequest error #20

Closed apps-auth closed 2 years ago

apps-auth commented 4 years ago

Hello, I am getting the following CORS error on the web flutter: Error: XMLHttpRequest error. Any way to solve this problem?

Dammyololade commented 4 years ago

hmmm, are you still facing this issue? I've not tried this on web but i guess its possible you might face a cors issue DO let me know if the problem persists.

ghost commented 4 years ago

I am also face this error. can you help me? flutter: Error: XMLHttpRequest error.

brandonwatkins commented 3 years ago

I am also facing this error 👎 Any help would be appreciated

lokijuy commented 3 years ago

did anyone solved this error? Please help me with this problem. Thank you.

buimanhhungit commented 3 years ago

Me too.

aaqibismail commented 3 years ago

I'm assuming this is intended behavior because of the inherent security issues of calling APIs client side. One solution would be to set up within your google cloud project a cloud function that is public and sends an http request to the API and return the results to the client. If you're already using firebase in your project, you could use its version of cloud functions.

apps-auth commented 2 years ago

I'm assuming this is intended behavior because of the inherent security issues of calling APIs client side. One solution would be to set up within your google cloud project a cloud function that is public and sends an http request to the API and return the results to the client. If you're already using firebase in your project, you could use its version of cloud functions.

Yes, that's exactly how I solved this problem. I made the calls through my server