@tauri-apps/plugin-opener
Open files and URLs using their default application.
This API has a scope configuration that forces you to restrict the files and urls to be opened.
Restricting access to the open | `open` API
Section titled “Restricting access to the open | `open` API”On the configuration object, open: true
means that the open API can be used with any URL,
as the argument is validated with the ^((mailto:\w+)|(tel:\w+)|(https?://\w+)).+
regex.
You can change that regex by changing the boolean value to a string, e.g. open: ^https://github.com/
.
© 2025 Tauri Contributors. CC-BY / MIT