Files
coco-app/src-tauri/capabilities/default.json
BiggerRain 76d06dc3fe chore: add websocket & http api about chat AI (#7)
* chore: add websocket & http api about chat AI

* feat: Chat AI API debug

* chore: modify the config
2024-11-09 11:30:36 +08:00

39 lines
992 B
JSON

{
"$schema": "../gen/schemas/desktop-schema.json",
"identifier": "default",
"description": "Capability for the main window",
"windows": ["main"],
"permissions": [
"core:event:allow-listen",
"core:window:default",
"core:window:allow-start-dragging",
"core:webview:allow-create-webview",
"core:window:allow-show",
"core:webview:allow-create-webview-window",
"core:webview:allow-webview-close",
"core:window:allow-close",
"core:window:allow-hide",
"core:webview:allow-set-webview-size",
"core:window:allow-set-size",
"core:default",
"shell:allow-open",
"http:default",
"http:allow-fetch",
"http:allow-fetch-cancel",
"http:allow-fetch-read-body",
"http:allow-fetch-send",
{
"identifier": "http:default",
"allow": [
{
"url": "http://localhost:2900"
}
],
"deny": []
},
"websocket:default",
"websocket:allow-connect",
"websocket:allow-send"
]
}