How to Implement Dynamic Permissions #14125
Unanswered
SpuerMomonga
asked this question in
Q&A
Replies: 2 comments 2 replies
-
For extensions that need different permissions, run each one in its own webview with the minimum capabilities it needs. If it later needs more, show a consent prompt and relaunch that webview with {previous + new} capabilities. Keep small bundles in src-tauri/capabilities/ (e.g., read-only to the extension’s folder or HTTP to specific hosts), and store approvals per extension so you only prompt again for new permissions. Capabilities are set at webview creation, so relaunching is how you go "dynamic" |
Beta Was this translation helpful? Give feedback.
1 reply
-
You can use |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am implementing an extension system that loads code remotely into a webview for execution. How can I implement a dynamic permission system to match the different permission requirements of various extensions? The existing permission system is static.
Beta Was this translation helpful? Give feedback.
All reactions