You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.redacted' 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
Just to be sure, you allowed tauri://localhost/ for ios and http://tauri.localhost/ for android? We generally can't do anything against Access-Control-Allow-Origin errors on our side (we can't make the webview ignore it nor can we modify responses), it just has to be configured on the server correctly.
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.redacted' 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
The text was updated successfully, but these errors were encountered: