Store APK - URL Blocked

When I build an APK with --release the URL going to an accesspoint is modified with http://localhost.

For example… if I do not use --release and it is a debug … i use. HttpClient .get() to https://mysite.com/endpoint

BUT Same code … nothing but --release in the APK build … it tries to go to
http://localhost/https://mysite.com/endpoint

Tried both Cordova and Capx builds.

Only happens on Android … this doesn’t happen on iOS.