How to set up CORS or OPTIONS for Rocket.rs
问题 I've got a backend running rocket.rs which my flutter web app sends a request to, but it can't get past the OPTIONS response. I have tried adding CORS (rocket_cors) to the backend and having a options response, but it still sends back: Error: XMLHttpRequest error. dart:sdk_internal 124039:30 get current packages/http/src/browser_client.dart.lib.js 214:124 <fn> I have added the following to my rocket project: #[options("/")] fn send_options<'a>(path: PathBuf) -> Response<'a> { let mut res =