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
...options.headers works for { foo: "bar" } but does not work for a Headers object.
Reproduction
import{invoke}from"@tauri-apps/api/core";// work ⭐awaitinvoke("foo",undefined,{headers: {foo: "bar"}});// not work ❌constheaders=newHeaders({foo: "bar"});awaitinvoke("foo",undefined,{
headers
});
Describe the bug
tauri/crates/tauri/scripts/ipc-protocol.js
Line 38 in 8a1d490
...options.headers
works for{ foo: "bar" }
but does not work for aHeaders
object.Reproduction
Can't receive
foo: "bar"
header in backend.Expected behavior
No response
Full
tauri info
outputStack trace
Additional context
I have not checked the case for
isolation
mode because I don't quite understand how to use this mode (its documentation is not very clear 😵).The text was updated successfully, but these errors were encountered: