Problem with js http request on IOS9

Good mornign to all,

with the release of ios9 we found a problem with our app.

Briefly.. we have an angularjs site and an app built with corcova. Essentially the app is only a web view for our responsive site.

We have a login page that calls our backend services through an http get request.

Until ios 8 and on android devices or pcs all works fine but on ios 9 the this http request doesn't works and we get this error:

{"code":12,"name":"SyntaxError","message":"SyntaxError: DOM Exception 12","line":5,"column":663,"sourceURL":"http://172.21.114.93/app/js/app.min.js"}


The strange thing is that we also have a demo page that makes the same request automatically and this works fine!


I really hope that someone can help us 🙂


Thank you guys


Fabrizio

I have the same issu. I fix it by removing the space charactere in the Authorization http header property.

https://forum.ionicframework.com/t/solved-ios9-fails-with-setrequestheader-native-with-custom-headers-in-http-service/32399

Problem with js http request on IOS9
 
 
Q