Ionic-framework: HTTPS CORS failed for Android device version <= 4.4

Created on 28 Mar 2016  路  7Comments  路  Source: ionic-team/ionic-framework

Short description of the problem:

Send CORS request to RESTFul API,
When we use Android <= 4.4 device to test this, CORS request failed: request status code = 0, just send the first one "OPTION" request
work fine with iOS and Android > 4.4

What behavior are you expecting?

CORS success

Fix unperfect way

Use http instead of https, but not safety.

http://stackoverflow.com/questions/31062231/using-cors-and-csrf-together-in-ionic-app
As this, but did not work with the answer

investigation

Most helpful comment

Isn't this something Crosswalk would sort out?

All 7 comments

Isn't this something Crosswalk would sort out?

Hello, thanks for opening an issue with us! Sorry if i misunderstood but did you install the whitelist plugin? And after you installed it your still seeing the issue?

Yes, i already installed the whitelist plugin, but still have this issue...
Just for Android device <= 4.4

@ZachBergh would you be able to try Crosswalk? To enable crosswalk for your app just navigate to your ionic project in your terminal and run ionic browser add crosswalk. Usually with android devices under 4.4 we recommend using Crosswalk anyways as this will give you major performance enhancements and better html5 support right out of the box.

Thanks @jgw96 i am trying ;)

Thanks you very much, all fixed.
Awesome!!

@ZachBergh awesome! Very glad to hear that fixed your issue. Thanks for using Ionic !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

manucorporat picture manucorporat  路  3Comments

GeorgeAnanthSoosai picture GeorgeAnanthSoosai  路  3Comments

alexbainbridge picture alexbainbridge  路  3Comments

aslamj picture aslamj  路  3Comments

SebastianGiro picture SebastianGiro  路  3Comments