- Fetch attachments via WebDAV using Tauri HTTP plugin (bypasses CORS) - Parse markdown for image references and convert to base64 data URLs - In-memory cache to avoid re-fetching images - Loading indicator while images load - Register tauri-plugin-http in Rust builder - Add HTTP permissions in capabilities
19 lines
376 B
JSON
19 lines
376 B
JSON
{
|
|
"$schema": "../gen/schemas/desktop-schema.json",
|
|
"identifier": "default",
|
|
"description": "Capability for the main window",
|
|
"windows": ["main"],
|
|
"permissions": [
|
|
"core:default",
|
|
"opener:default",
|
|
"http:default",
|
|
{
|
|
"identifier": "http:default",
|
|
"allow": [
|
|
{ "url": "https://*" },
|
|
{ "url": "http://*" }
|
|
]
|
|
}
|
|
]
|
|
}
|