You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Chandra Sekhar Walajapet Sureshbabu (JIRA)" <ji...@apache.org> on 2017/04/17 05:13:42 UTC

[jira] [Comment Edited] (CB-12654) Cordova release build blocks ajax requests

    [ https://issues.apache.org/jira/browse/CB-12654?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15970662#comment-15970662 ] 

Chandra Sekhar Walajapet Sureshbabu edited comment on CB-12654 at 4/17/17 5:13 AM:
-----------------------------------------------------------------------------------

OK i figured out that, the root cause of the issue is "SSL Exception" , the certificate is not trusted by Android N because of a bug in Chrome, it is now sorted out, thanks [~kerrishotts]

https://productforums.google.com/forum/#!topic/chrome/jPsbfBk9JN8;context-place=forum/chrome

https://knowledge.symantec.com/support/ssl-certificates-support/index?page=content&id=ALERT2160


was (Author: mr.chandoo@gmail.com):
OK i figured out that, the root cause of the issue is "SSL Exception" , the certificate is not trusted by Android N because of a bug in Chrome, it is now sorted out, thanks [~kerrishotts]

https://productforums.google.com/forum/#!topic/chrome/jPsbfBk9JN8;context-place=forum/chrome

> Cordova release build blocks ajax requests
> ------------------------------------------
>
>                 Key: CB-12654
>                 URL: https://issues.apache.org/jira/browse/CB-12654
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>         Environment: cordova-android@4.1.1 , Android Version 7.1.1, Nexus 5X
>            Reporter: Chandra Sekhar Walajapet Sureshbabu
>
> Android Cordova Debug Build works fine on Nexus 5X, 7.1.1 , However it fails to make any ajax requests on Release(Signed) Build.
> Tried communicating from native code using a plugin, the connection is successful
> The issue occurs only in Nexus 5X, 7.1.1 and doesn't happen on other devices.
> Permissions:
> <uses-permission android:name="android.permission.INTERNET" />
> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
> Whitelist plugin in config.xml:
> <feature name="Whitelist">
>         <param name="android-package" value="org.apache.cordova.whitelist.WhitelistPlugin" />
>         <param name="onload" value="true" />
>     </feature>
> Even tested with logs in ChromeWebViewImpl.java
> Returns true when asked for shouldAllow
> CSP:
> <meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; connect-src https://mysubdomain.mydomain.com">
> Please note the CSP works for all Android, iOS devices except for Nexus 5X 7.1.1, i even tried removing connect-src, but same result.
> Did anyone come across similar issue ?



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org