[desktop] Tauri HTTP interceptor
This commit is contained in:
@@ -25,8 +25,8 @@ tauri-plugin-single-instance = "2.2.1"
|
||||
tauri-plugin-notification = "2.2.1"
|
||||
tauri-plugin-log = "2.2.1"
|
||||
tauri-plugin-window-state = "2.2.1"
|
||||
tauri-plugin-http = "2.2.1"
|
||||
tauri-plugin-websocket = "2.2.1"
|
||||
tauri-plugin-http = "2"
|
||||
tauri-plugin-websocket = "2"
|
||||
|
||||
clap_lex = "0.7.2"
|
||||
|
||||
|
||||
@@ -33,6 +33,20 @@
|
||||
"window-state:allow-save-window-state",
|
||||
"window-state:allow-restore-state",
|
||||
"clipboard-manager:allow-read-text",
|
||||
"clipboard-manager:allow-write-text"
|
||||
"clipboard-manager:allow-write-text",
|
||||
{
|
||||
"identifier": "http:default",
|
||||
"allow": [
|
||||
{
|
||||
"url": "http://127.0.0.1:817/**"
|
||||
},
|
||||
{
|
||||
"url": "http://localhost:817/**"
|
||||
}
|
||||
]
|
||||
},
|
||||
"websocket:default",
|
||||
"http:default",
|
||||
"websocket:default"
|
||||
]
|
||||
}
|
||||
@@ -146,6 +146,8 @@ fn main() {
|
||||
};
|
||||
|
||||
let app = tauri::Builder::default()
|
||||
.plugin(tauri_plugin_websocket::init())
|
||||
.plugin(tauri_plugin_http::init())
|
||||
// Shell plugin for open_external support
|
||||
.plugin(tauri_plugin_shell::init())
|
||||
// Initialize Logging plugin.
|
||||
|
||||
Reference in New Issue
Block a user