'Greet' example does not work on Windows 11 or Linux (Pop_OS 22.04)Β #147
Open
Description
The 'greet' example from this repo gives the following error in the devtools console on Windows:
Fetch API cannot load ipc://localhost/greet/greet. URL scheme "ipc" is not supported.
On Linux, the following error is received instead:
[Error] Origin http://localhost:1420 is not allowed by Access-Control-Allow-Origin. Status code: 200
[Error] Failed to load resource: Origin http://localhost:1420 is not allowed by Access-Control-Allow-Origin. Status code: 200 (greet, line 0)
[Error] Fetch API cannot load ipc://localhost/greet/greet due to access control checks.
The example does appear to work just fine on MacOS.
Steps to reproduce:
- Clone a fresh copy of the tauri-bindgen repository to the test machine
- Checkout the 'v.0.2.0' tag
- Change directory into the 'examples/greet' folder and run 'cargo tauri dev'
- Open the console in devtools, enter a name into the main window text box, then hit the 'Greet' button
Expected result:
Text to appear below the text box with a greeting using the name provided.
Actual result:
Nothing appears in the main window and errors appear in the devtools console.
tauri-bindgen-error_windows.txt
tauri-bindgen-error_linux.txt
Metadata
Assignees
Labels
No labels