-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
on windows the following error is popping up in the web devconsole
Access to fetch at 'http://ipc.localhost/__initialized' from origin 'http://localhost:1420' has been blocked by CORS
policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.
The code in Tauri has a special case for the __initialized request and works fine
"__initialized" => match request.body.deserialize() {
Ok(payload) => {
manager.run_on_page_load(self, payload);
resolver.resolve(());
}
Err(e) => resolver.reject(e.to_string()),
},
...which is overwritten by
tauri-bindgen/crates/ipc-router-wip/src/lib.rs
Lines 195 to 200 in 1ae5e2a
| fn ipc_router<U: Send + Sync + 'static>(self, router: Router<U>) -> Self { | |
| let router = Arc::new(router); | |
| self.register_asynchronous_uri_scheme_protocol("ipc", move |_app, req, responder| { | |
| let router = router.clone(); | |
quite not sure what the impact is, commands work fine with an adjusted url
Metadata
Metadata
Assignees
Labels
No labels