Fix unsupported ajax calls on iOS.