Replies: 1 comment 5 replies
-
If I may be so bold, this is REALLY asking for your app to get pwned. At any rate, one solution would be to acquire the path in rust, read the file in rust, then eval it in the webview by rust. But again, you basically open all the gates to XSS which can (will probably) have massive implications on your security. I cannot recommend this pattern. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have written many desktop programs using Tauri. Thank you for your work!
Recently I came across a scenario that needs to be able to dynamically load local JS files at runtime, I have tried to use a custom schema protocol to load but failed, due to CORS. So I wonder if there is a solution to solve it?
Or how can I add custom middlewares to handle assets loading on
http://tauri.localhost
?To avoid causing XY problems: I want to implement a dynamically loaded plugin (written in JS) mechanism.
🙏
Beta Was this translation helpful? Give feedback.
All reactions