Steps to reproduce:
npm run tauri dev
- Inspect element and open the JS console
- Ensure you're running in the context of
www.example.com
(verify withwindow.location
) - Execute
await window.__TAURI_INVOKE__("greet", { name: "From iframe" })
- See
Greeting
From iframefrom Rust
in your terminal