I am building a mobile application. When i want to test the login part on an android device i kept getting
{“headers”:{“normalizedNames”:{},“lazyUpdate”:null,“headers”:{}},“status”:0,“statusText”:“Unknown Error”,“url”:null,“ok”:false,“name”:“HttpErrorResponse”,“message”:“Http failure response for (unknown url): 0 Unknown Error”,“error”:{“isTrusted”:true}}
i searched online and implemented all recommendations but nothing seems to work. I have done ```
I am using nodejs as the backend API and i have enable cors on the index.js file
app.use(cors());
app.use(express.json()); // req.body
When i tried the application on the browser and Postman i did not get error but on the android mobile device nothing seems to work on Https:// and Http api domain
I will need a help on how this can be resolved
4 posts - 2 participants