@wodin Thanks a lot for your explanations. I get it now.
One last question related to this one what did the author mean with
Use IP address instead of local host.
I have this same issue my server looks like this: https://<domain>:port
and fetch request are failing on android
with Network request failed
. Everything is fine on ios
. This did not help.
Ex.
const formData = new FormData();
formData.append('key1', 'value1');
formData.append('key2', 'value2');
fetch(url, {
method: 'POST',
body: formData,
redirect: 'follow',
headers: {
'Content-Type': 'multipart/form-data'
}
})