Axios should work on desktop since it’s Node API, but will not work at all on mobile. There is also no good way of bypassing CORS on mobile other than request()
.
I would recommend trying to map out the internals of your library to see if they provide any way to override the HTTP calls, which you can then redirect to request
if needed. One thing to keep in mind is that request
currently only support string data and not binary (you’ll get your response back as a string).