Skip to content
Discussion options

You must be logged in to vote

I figured it out, you can use AllowlistWebPermissions:

let runtime_permissions = Arc::new(AllowlistWebPermissions::default());
    runtime_permissions.allow_open(
        <file_path>,
        true,
        false,
    );

Earlier I tried allow_read and that didn't work but allow_open does.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@Datron
Comment options

Comment options

You must be logged in to vote
3 replies
@rscarson
Comment options

@Datron
Comment options

@rscarson
Comment options

Answer selected by Datron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants