tauri: Failed to load resource: net::ERR_CONNECTION_REFUSED
Describe the bug
Tauri opens the web project on the local hard disk. If the opened project introduces js, it will report an error, Failed to load resource: net::ERR_CONNECTION_REFUSED, how to solve this problem, thank you for your help, I searched for this in Issues The problem seems to be solved by using register_uri_scheme_protocol, but I’m not sure if it can be solved. I don’t know how to rust code, and I didn’t run the code snippets posted by others.
Reproduction
No response
Expected behavior
No response
Platform and versions
[✔] Environment
- OS: Windows 10.0.19045 X64
✔ WebView2: 113.0.1774.57
✔ MSVC: Visual Studio Community 2019
✔ rustc: 1.69.0 (84c898d65 2023-04-16)
✔ Cargo: 1.69.0 (6e9a83356 2023-04-12)
✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
- node: 20.1.0
- pnpm: 8.4.0
- npm: 9.6.4
[-] Packages
- tauri [RUST]: 1.3.0
- tauri-build [RUST]: 1.3.0
- wry [RUST]: 0.24.3
- tao [RUST]: 0.16.2
- @tauri-apps/api [NPM]: 1.3.0
- @tauri-apps/cli [NPM]: 1.3.1
[-] App
- build-type: bundle
- CSP: default-src 'self'; img-src 'self' asset: https://asset.localhost
- distDir: ../dist
- devPath: http://localhost:1420/
- framework: Vue.js
- bundler: Vite
Stack trace
No response
Additional context
No response
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 16 (4 by maintainers)
Ok, I will write an example to upload to the warehouse, it may be next Monday, thank you