diff --git a/.changes/ipc-allow-headers.md b/.changes/ipc-allow-headers.md new file mode 100644 index 000000000..4501500cf --- /dev/null +++ b/.changes/ipc-allow-headers.md @@ -0,0 +1,5 @@ +--- +"tauri": patch:bug +--- + +Allow any headers on the IPC custom protocol. diff --git a/core/tauri/src/ipc/protocol.rs b/core/tauri/src/ipc/protocol.rs index 152c0b64e..fe5031acb 100644 --- a/core/tauri/src/ipc/protocol.rs +++ b/core/tauri/src/ipc/protocol.rs @@ -137,10 +137,8 @@ pub fn get(manager: Arc>, label: String) -> UriSchemeP Method::OPTIONS => { let mut r = http::Response::new(Vec::new().into()); - r.headers_mut().insert( - ACCESS_CONTROL_ALLOW_HEADERS, - HeaderValue::from_static("Content-Type, Tauri-Callback, Tauri-Error, Tauri-Channel-Id"), - ); + r.headers_mut() + .insert(ACCESS_CONTROL_ALLOW_HEADERS, HeaderValue::from_static("*")); respond(r); }