Android app is calling localhost instead of my local server's ip. I followed the tauri documentation and setup the frontend, vite.cofig, tauri.conf.json based on that. I'm running using pnpm tauri android dev --host. Calling the remote server gives me another error even though I allowed tauri:localhost origin.
Access to XMLHttpRequest at 'https://api.lttlbrd.app/version_info' from origin 'http://tauri.localhost/' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
On iOS everything works fine. Non of the relevant issues provide a solution.
Reproduction
No response
Expected behavior
Calls to localhost should be routed to my local server's ip
Describe the bug
Android app is calling localhost instead of my local server's ip. I followed the tauri documentation and setup the frontend, vite.cofig, tauri.conf.json based on that. I'm running using
pnpm tauri android dev --host
. Calling the remote server gives me another error even though I allowedtauri:localhost
origin.Access to XMLHttpRequest at 'https://api.lttlbrd.app/version_info' from origin 'http://tauri.localhost/' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
On iOS everything works fine. Non of the relevant issues provide a solution.
Reproduction
No response
Expected behavior
Calls to localhost should be routed to my local server's ip
Full
tauri info
outputStack trace
No response
Additional context
Device running Android 14