taurine
taurine copied to clipboard
Not working on Windows
Hi! I'm trying to build the app and it goes all well, but when I open the app, it seems that is not communicating with the server.
I type something in the input, click on Greet button and it does nothing. I've followed all steps carefully Is this repo still working?
Thanks!
Same here, did you find any solutions for this?
Thanks!
@benjasHu @saogregl Sorry, I didn't test it on Windows. I don't have such a machine, but I assume it's doable. Try passing the targets
or t
cli option to the pkg
executable.
You can find it here: https://github.com/Perfect7M/taurine/blob/main/scripts/build-server.js#L44
Please let me know if it's working. I will try to test it on both Windows and Linux - and make a guide how to make it work on that platform.
Hi again, finally I was able to fix it, simply adding https://tauri.localhost
to the accepted CORS list.
In /server/index.ts
:
server.register(cors, {
origin: [
'http://localhost:1420',
'https://tauri.localhost',
'tauri://localhost'
]
})
@bsanchez-grupo-active
This worked in my case. Thank you.
Isso funcionou no meu caso. Obrigado.