tauri
tauri copied to clipboard
[bug] Failed to set the http scope of plugins
Describe the bug
My tauri.conf.json file is as follows:
{
"productName": "linyu-client",
"version": "0.0.1",
"identifier": "com.cershy",
"build": {
"beforeDevCommand": "npm run dev",
"devUrl": "http://localhost:1420",
"beforeBuildCommand": "npm run build",
"frontendDist": "../dist"
},
"app": {
"windows": [
{
"title": "linyu-client",
"label": "login",
"width": 360,
"height": 510,
"center": true,
"transparent": true,
"decorations": false,
"fullscreen": false,
"resizable": false,
"shadow": false
}
],
"security": {
"csp": null
},
"trayIcon": {
"iconPath": "icons/icon.png",
"iconAsTemplate": true
}
},
"bundle": {
"active": true,
"targets": "all",
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/[email protected]",
"icons/icon.icns",
"icons/icon.ico"
]
},
"plugins": {
"http": {
"scope": ["http://my.api.host/*"]
}
}
}
Reproduction
No response
Expected behavior
No response
Full tauri info output
[✔] Environment
- OS: Windows 10.0.22631 X64
✔ WebView2: 118.0.2088.76
✔ MSVC: Visual Studio Community 2022
✔ rustc: 1.78.0 (9b00956e5 2024-04-29)
✔ cargo: 1.78.0 (54d8815d0 2024-03-26)
✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
- node: 16.20.0
- yarn: 1.22.22
- npm: 8.19.4
[-] Packages
- tauri [RUST]: 2.0.0-beta.20
- tauri-build [RUST]: 2.0.0-beta.16
- wry [RUST]: 0.40.0
- tao [RUST]: 0.28.0
- @tauri-apps/api [NPM]: 2.0.0-beta.12
- @tauri-apps/cli [NPM]: 2.0.0-beta.18
[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../dist
- devUrl: http://localhost:1420/
- framework: React
- bundler: Vite
Stack trace
error while running tauri application: PluginInitialization("http", "Error deserializing 'plugins.http' within your Tauri configuration: invalid type: map, expected unit")
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Additional context
No response