mirror of
https://github.com/hoornet/vega.git
synced 2026-04-26 07:40:01 -07:00
WebKitGTK can't serialize FormData with Blob objects through Tauri's HTTP plugin, throwing "InvalidStateError: Unable to read form data blob". Build the multipart/form-data body manually as raw bytes instead. Also add void.cat and nostrimg.com to the HTTP scope.
30 lines
679 B
JSON
30 lines
679 B
JSON
{
|
|
"$schema": "../gen/schemas/desktop-schema.json",
|
|
"identifier": "default",
|
|
"description": "Capability for the main window",
|
|
"windows": ["main"],
|
|
"permissions": [
|
|
"core:default",
|
|
"opener:default",
|
|
"updater:default",
|
|
"process:default",
|
|
{
|
|
"identifier": "http:default",
|
|
"allow": [
|
|
{ "url": "https://nostr.build/**" },
|
|
{ "url": "https://void.cat/**" },
|
|
{ "url": "https://nostrimg.com/**" },
|
|
{ "url": "https://relay.vertexlab.io/**" }
|
|
]
|
|
},
|
|
"dialog:default",
|
|
{
|
|
"identifier": "fs:allow-read-file",
|
|
"allow": [
|
|
{ "path": "**" }
|
|
]
|
|
},
|
|
"notification:default"
|
|
]
|
|
}
|