-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Description
Describe the bug
I set the allowlist config as follows:
"app": {
"all": false,
"hide": true,
"show": false
},However, it doesn't work, the error message is: Unhandled Promise Rejection: 'app > hide' not in the allowlist (https://tauri.app/docs/api/config#tauri.allowlist).
If I set the allowlist as follows:
"allowlist": {
"all": true,
},It works. I think it has not set app features in the config as follows:
https://github.com/tauri-apps/tauri/blob/dev/core/tauri-utils/src/config.rs#L2149
features.extend(self.app.to_features());
Reproduction
No response
Expected behavior
No response
Platform and versions
Environment
› OS: Mac OS 13.0.1 X64
› Node.js: 18.6.0
› npm: 8.13.2
› pnpm: Not installed!
› yarn: 1.22.19
› rustup: 1.25.1
› rustc: 1.65.0
› cargo: 1.65.0
› Rust toolchain: stable-aarch64-apple-darwin
Packages
› @tauri-apps/cli [NPM]: 1.2.0
› @tauri-apps/api [NPM]: 1.2.0
› tauri [RUST]: 1.2.0,
› tauri-build [RUST]: 1.2.0,
› tao [RUST]: 0.15.4,
› wry [RUST]: 0.22.1,
Stack trace
No response
Additional context
No response