web-view icon indicating copy to clipboard operation
web-view copied to clipboard

Rust Webview JavaScript interface

Open 12a6 opened this issue 1 year ago • 0 comments

I am developing a Web plug-in of Rust native app (Plug-in will be loaded into a Webview instance of native Rust app). My plug-in must fetch ( via GET/POST/PUT/DELETE requests) data from remote servers. Currently, my Web plug-in could not use default JavaScript fetch due to blocking by CORS errors. Therefore, I must find a way to call fetch handlers from Rust native app. 

I know that Android apps can expose JavaScript interface APIs to web plugins (run inside a Webview).

I would like to ask: How can Rust native apps expose JavaScript interface APIs to web plugins (run inside a Webview)" ?

12a6 avatar Mar 11 '23 08:03 12a6