You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CORS headers need to be setup in order to allow WASM requests to go through from the browser. Can try using fetch_mode_no_cors, but the browser itself disallows that request and results in it failing:
on further investigation this is revealed to be a fetch error:
JsValue(TypeError: Failed to fetchTypeError: Failed to fetch at http://localhost:8000/wasm-bindgen-test:947:21 at logError (http://localhost:8000/wasm-bindgen-test:17:18) at imports.wbg.__wbg_fetch_b335d17f45a8b5a1 (http://localhost:8000/wasm-bindgen-test:946:68) at xmtp_mls-338b2af48685e0b2.wasm.__wbg_fetch_b335d17f45a8b5a1 externref shim (http://localhost:8000/wasm-bindgen-test_bg.wasm:wasm-function[16156]:0x61106d) at xmtp_mls-338b2af48685e0b2.wasm.reqwest::wasm::client::js_fetch::he87d96ccfb1eabe7 (http://localhost:8000/wasm-bindgen-test_bg.wasm:wasm-function[6332]:0x51a499) at xmtp_mls-338b2af48685e0b2.wasm.reqwest::wasm::request::RequestBuilder::send::{{closure}}::h3bcd09dd934bfa91 (http://localhost:8000/wasm-bindgen-test_bg.wasm:wasm-function[412]:0x1a062c) at xmtp_mls-338b2af48685e0b2.wasm.xmtp_mls::groups::device_sync::SyncWorker<ApiClient,V>::on_request::{{closure}}::h36e4e08bd3478bb8 (http://localhost:8000/wasm-bindgen-test_bg.wasm:wasm-function[218]:0x4b3a2) at xmtp_mls-338b2af48685e0b2.wasm.xmtp_mls::groups::device_sync::SyncWorker<ApiClient,V>::run::{{closure}}::hcf66a7f257dfdc9a (http://localhost:8000/wasm-bindgen-test_bg.wasm:wasm-function[209]:0x210fe) at xmtp_mls-338b2af48685e0b2.wasm.futures_util::future::future::FutureExt::poll_unpin::h585df9976ee641df (http://localhost:8000/wasm-bindgen-test_bg.wasm:wasm-function[409]:0x19d0a7) at xmtp_mls-338b2af48685e0b2.wasm.<futures_util::future::select::Select<A,B> as core::future::future::Future>::poll::h911884014f79df2e (http://localhost:8000/wasm-bindgen-test_bg.wasm:wasm-function[8587]:0x57a28a))
CORS headers need to be setup in order to allow WASM requests to go through from the browser. Can try using
fetch_mode_no_cors
, but the browser itself disallows that request and results in it failing:on further investigation this is revealed to be a fetch error:
fetch_mode_no_cors
fundamentally changes the browser response into something different, which reqwest may not expect. Article on topic: https://tpiros.dev/blog/what-is-an-opaque-response/possibly related: seanmonstar/reqwest#1401
The text was updated successfully, but these errors were encountered: