Does anyone know an ip api that works on mobile and web?

For some reason, the http request in appgyver has this bug which makes it return a cors error on web, though it works fine in mobile. I need to somehow make it work on web and mobile. I am using a get http request to verify the person requesting verification code is the same person verifying the code.

Anyone know a better way to get users ip?