How to connect with capability json files? #9168
-
Really struggling to convert from V1 to V2 but basically I did a migration on my project and a migrated.json file was created in the capabilities folder. This file appears to hold all the old allowlist details so somehow this needs to be linked into the tauri.config.json file (which used to hold the allowlist stuff) - I was thinking maybe that it needs to go under the security section but it is not clear in the docs. Any clues anyone? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
iirc tauri is supposed to read all capability files by default. Being able to select them in tauri.conf was added her: #8797 (not updated in the docs yet). So you could add the identifier from the respective capability file (example) to the app > security > capabilities array if you prefer that. |
Beta Was this translation helpful? Give feedback.
-
@FabianLars thanks for that - it does look like Tauri is using the migrated.json file so just need to find out why the fs api is failing (** doesn't appear to work so need to look further) |
Beta Was this translation helpful? Give feedback.
iirc tauri is supposed to read all capability files by default. Being able to select them in tauri.conf was added her: #8797 (not updated in the docs yet). So you could add the identifier from the respective capability file (example) to the app > security > capabilities array if you prefer that.