Files
Stirling-PDF/frontend/src-tauri/capabilities/default.json
2026-03-05 16:18:25 +00:00

63 lines
1.7 KiB
JSON

{
"$schema": "../gen/schemas/desktop-schema.json",
"identifier": "default",
"description": "enables the default permissions",
"windows": [
"main"
],
"permissions": [
"core:default",
"core:window:allow-destroy",
"http:default",
{
"identifier": "http:allow-fetch",
"allow": [
{ "url": "http://*" },
{ "url": "http://*:*" },
{ "url": "https://*" },
{ "url": "https://*:*" },
{ "url": "http://192.168.*.*" },
{ "url": "http://192.168.*.*:*" },
{ "url": "https://192.168.*.*" },
{ "url": "https://192.168.*.*:*" },
{ "url": "http://10.*.*.*" },
{ "url": "http://10.*.*.*:*" },
{ "url": "https://10.*.*.*" },
{ "url": "https://10.*.*.*:*" },
{ "url": "http://172.16.*.*" },
{ "url": "http://172.16.*.*:*" },
{ "url": "https://172.16.*.*" },
{ "url": "https://172.16.*.*:*" },
{ "url": "http://localhost:*" },
{ "url": "https://localhost:*" },
{ "url": "http://127.0.0.1:*" },
{ "url": "https://127.0.0.1:*" }
]
},
"http:allow-fetch-cancel",
"http:allow-fetch-read-body",
"http:allow-fetch-send",
{
"identifier": "fs:allow-read-file",
"allow": [{ "path": "**" }]
},
{
"identifier": "fs:allow-write-file",
"allow": [{ "path": "**" }]
},
{
"identifier": "fs:allow-remove",
"allow": [{ "path": "**" }]
},
"dialog:default",
"dialog:allow-message",
"dialog:allow-open",
"dialog:allow-save",
"opener:default",
"shell:allow-open",
"window-state:allow-filename",
"window-state:allow-restore-state",
"window-state:allow-save-window-state"
]
}