mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-06-06 13:53:54 +02:00
Feat: Add default permissions to most plugins (#1460)
* Add default permissions to most plugins. Co-authored-by: chippers <chip@chip.sh> Co-authored-by: fabianlars <fabianlars@fabianlars.de> * updated default description * mobile plugin relevant changes --------- Co-authored-by: chippers <chip@chip.sh> Co-authored-by: fabianlars <fabianlars@fabianlars.de>
This commit is contained in:
@@ -8,4 +8,15 @@
|
||||
|`deny-fetch-read-body`|Denies the fetch_read_body command without any pre-configured scope.|
|
||||
|`allow-fetch-send`|Enables the fetch_send command without any pre-configured scope.|
|
||||
|`deny-fetch-send`|Denies the fetch_send command without any pre-configured scope.|
|
||||
|`default`|Allows all fetch operations|
|
||||
|`default`|This permission set configures what kind of
|
||||
fetch operations are available from the http plugin.
|
||||
|
||||
This enables all fetch operations but does not
|
||||
allow explicitly any origins to be fetched. This needs to
|
||||
be manually configured before usage.
|
||||
|
||||
#### Granted Permissions
|
||||
|
||||
All fetch operations are enabled.
|
||||
|
||||
|
|
||||
|
||||
@@ -1,6 +1,19 @@
|
||||
"$schema" = "schemas/schema.json"
|
||||
|
||||
[default]
|
||||
description = "Allows all fetch operations"
|
||||
description = """
|
||||
This permission set configures what kind of
|
||||
fetch operations are available from the http plugin.
|
||||
|
||||
This enables all fetch operations but does not
|
||||
allow explicitly any origins to be fetched. This needs to
|
||||
be manually configured before usage.
|
||||
|
||||
#### Granted Permissions
|
||||
|
||||
All fetch operations are enabled.
|
||||
|
||||
"""
|
||||
permissions = [
|
||||
"allow-fetch",
|
||||
"allow-fetch-cancel",
|
||||
|
||||
@@ -351,7 +351,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "default -> Allows all fetch operations",
|
||||
"description": "default -> This permission set configures what kind of\nfetch operations are available from the http plugin.\n\nThis enables all fetch operations but does not\nallow explicitly any origins to be fetched. This needs to\nbe manually configured before usage.\n\n#### Granted Permissions\n\nAll fetch operations are enabled.\n\n",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"default"
|
||||
|
||||
Reference in New Issue
Block a user