Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rust Webview JavaScript interface #323

Open
12a6 opened this issue Mar 11, 2023 · 0 comments
Open

Rust Webview JavaScript interface #323

12a6 opened this issue Mar 11, 2023 · 0 comments

Comments

@12a6
Copy link

12a6 commented Mar 11, 2023

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)" ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant