File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,15 +34,14 @@ There is a sample Desktop application for Windows/Linux/MacOS using this plugin
3434Javascript in [ examples/plain-javascript] ( https://github.com/marcomq/tauri-plugin-python/tree/main/examples/plain-javascript )
3535
3636## Security considerations
37- Generally, this plugin has been created by "security by default" concept and is
38- expected to be nearly as secure as normal tauri applications.
37+ Generally, this plugin has been created by "security by default" concept. Python functions can onl be called if registered from rust.
3938
40- Keep in mind that this plugin can also make it possible to run arbitrary python code
39+ Keep in mind that this plugin can make it possible to run arbitrary python code.
4140It is therefore highly recommended to ** not make the user interface accessible by a network URL** .
4241
4342The "runPython" command is disabled by default via permissions. If enabled, it is possible to
4443inject python code via javascript.
4544Also, the function "register" is disabled by default. If enabled, it can
46- add control from javascript which functions can be called.
45+ add control from javascript which functions can be called. This avoids to modify rust code when changing or adding python code.
4746Both functions can be enabled during development for rapid prototyping.
4847
You can’t perform that action at this time.
0 commit comments