Back to Flutter Rust Bridge

Cross-origin in Web

website/docs/guides/how-to/cross-origin.md

2.12.0698 B
Original Source

Cross-origin in Web

:::info This page only applies to the web platform, and other platforms (Android, iOS, Linux, MacOS, Windows) does not have this issue. :::

If you want to enjoy features such as multi-threading (which by default is enabled), the cross-origin headers needs to be specified.

On the other hand, if you cannot enable those headers, then the other parts of flutter_rust_bridge can still work. Currently, you may need to disable the default thread pool (link). However, if this is needed frequently, then maybe we can make it simpler to disable (e.g. create a new flag).