Redirection inside API Request not working in iPhone
I have a script that get data from two different APIs, but it isn't redirecting in the end of the last request to to the generated link, but it happens only for iPhone users. What am I doning wrong? I can't see it anywhere.
Code:
function calc(){
$('#btCalc').addClass('is-loading');
var req = new XMLHttpRequest();
req.open('GET','https://maps.googleapis.com/maps/api/geocode/json?address='+$('#cdd').val()+'&key=PRIVATE_KEY',false);