jaxnz / flutter_google_places_web

MIT License
22 stars 23 forks source link

DioError [DioErrorType.response]: Http status error [403] #9

Open thinley1999 opened 2 years ago

thinley1999 commented 2 years ago

Error: DioError [DioErrorType.response]: Http status error [403] C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/patch/core_patch.dart 908:28 get current

I am getting this error while using this package? any solution?

jaxnz commented 2 years ago

Hi,

This is a CORS issue - you can use a proxy to get around this. The proxy used in the example has been taken down due to abuse.

But if you have a look at this repo - it shows you how to set one up: https://github.com/Rob--W/cors-anywhere

thinley1999 commented 2 years ago

I have gone through this repo but can't get anything.. pls help

jaxnz commented 2 years ago

From what I can gather, CloudFlare offers a free CORS proxy service now.

Take a look at this repo - https://github.com/Zibri/cloudflare-cors-anywhere

This issue has nothing to do with Flutter - it is the security of the browser.

pradeep14598 commented 2 years ago

I have gone through this repo but can't get anything.. pls help

Hi @thinley1999 how did you overcome with this issue?

jaxnz commented 2 years ago

Hi @pradeep14598 - have you tried cors anywhere? It's still working for me in production.