Desdaemon / flutter_rust_bridge_template

Template for Flutter + Rust integration with flutter_rust_bridge.
https://desdaemon.github.io/flutter_rust_bridge_template/
Apache License 2.0
120 stars 63 forks source link

`flutter run -d chrome` produces CORS errors #33

Closed coder0xff closed 1 year ago

coder0xff commented 1 year ago

Hi, really great project. I'm having trouble running flutter run -d chrome with a fresh clone.

image

I tried to reproduce this with the default project from flutter create foobar, but chrome worked fine with it. I tried the answer at https://stackoverflow.com/a/70660912/395029 but there was no change.

Desdaemon commented 1 year ago

This is a limitation with flutter run, please check out the docs or this link for some workarounds.

dinbtechit commented 1 year ago

Followed the instruction from this link and got it working. Thank you @Desdaemon

coder0xff commented 1 year ago

I just had to run flutter_rust_bridge_serve instead.